nixpkgs/pkgs/development/python-modules/django-fsm/default.nix
2024-11-25 20:13:15 +01:00

43 lines
892 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
django,
python3,
django-guardian,
}:
buildPythonPackage rec {
pname = "django-fsm";
version = "3.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "viewflow";
repo = "django-fsm";
rev = "refs/tags/${version}";
hash = "sha256-woN0F4hTaPk8HTGNT6zQlZDJ9SCVRut9maKSlDmalUE=";
};
build-system = [ setuptools ];
dependencies = [ django ];
checkInputs = [ django-guardian ];
checkPhase = ''
${python3.interpreter} tests/manage.py test
'';
pythonImportsCheck = [ "django_fsm" ];
meta = {
description = "Django friendly finite state machine support";
homepage = "https://github.com/viewflow/django-fsm";
license = lib.licenses.mit;
knownVulnerabilities = [ "Package is marked as discontinued upstream." ];
maintainers = [ lib.maintainers.onny ];
};
}