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

39 lines
829 B
Nix
Raw Normal View History

2024-05-22 16:01:06 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
django,
dj-database-url,
}:
2017-06-27 21:12:29 +00:00
buildPythonPackage rec {
pname = "django-polymorphic";
version = "3.1";
format = "setuptools";
2017-06-27 21:12:29 +00:00
src = fetchFromGitHub {
owner = "django-polymorphic";
repo = "django-polymorphic";
rev = "v${version}";
hash = "sha256-JJY+FoMPSnWuSsNIas2JedGJpdm6RfPE3E1VIjGuXIc=";
2017-06-27 21:12:29 +00:00
};
propagatedBuildInputs = [ django ];
nativeCheckInputs = [ dj-database-url ];
checkPhase = ''
${python.interpreter} runtests.py
'';
pythonImportsCheck = [ "polymorphic" ];
meta = with lib; {
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;
2023-07-23 19:30:22 +02:00
maintainers = with maintainers; [ ];
2017-06-27 21:12:29 +00:00
};
}