8056f9250c
The setuptools-scm packages gained a setup hook, that sets it to the derivation version automatically, so setting it to that manually has become redundant. This also affects downstream consumers of setuptools-scm, like hatch-vcs or flit-scm.
49 lines
955 B
Nix
49 lines
955 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, django
|
|
, djangorestframework
|
|
, fetchFromGitHub
|
|
, python
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-login-required-middleware";
|
|
version = "0.9.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CleitonDeLima";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-WFQ/JvKh6gkUxPV27QBd2TzwFS8hfQGmcTInTnmh6iA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
];
|
|
|
|
checkInputs = [
|
|
djangorestframework
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"login_required"
|
|
];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m django test --settings tests.settings
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Requires login to all requests through middleware in Django";
|
|
homepage = "https://github.com/CleitonDeLima/django-login-required-middleware";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ onny ];
|
|
};
|
|
}
|