-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3Packages.django-fsm: init at 3.0.0
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters