nixpkgs/pkgs/development/python-modules/django-polymorphic/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1 KiB
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
django,
dj-database-url,
pytest-django,
pytestCheckHook,
}:
2017-06-27 21:12:29 +00:00
buildPythonPackage rec {
pname = "django-polymorphic";
version = "4.0.0";
pyproject = true;
2017-06-27 21:12:29 +00:00
src = fetchFromGitHub {
owner = "django-polymorphic";
repo = "django-polymorphic";
tag = "v${version}";
hash = "sha256-cEV9gnc9gLpAVmYkzSaQwDbgXsklMTq71edndDJeP9E=";
2017-06-27 21:12:29 +00:00
};
patches = [
# https://github.com/jazzband/django-polymorphic/issues/616
./django-5.1-compat.patch
];
build-system = [ setuptools ];
2017-06-27 21:12:29 +00:00
dependencies = [ django ];
nativeCheckInputs = [
dj-database-url
pytest-django
pytestCheckHook
];
pythonImportsCheck = [ "polymorphic" ];
meta = with lib; {
changelog = "https://github.com/jazzband/django-polymorphic/releases/tag/${src.tag}";
homepage = "https://github.com/django-polymorphic/django-polymorphic";
2017-06-27 21:12:29 +00:00
description = "Improved Django model inheritance with automatic downcasting";
license = licenses.bsd3;
maintainers = [ ];
2017-06-27 21:12:29 +00:00
};
}