2021-01-25 09:26:54 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python,
|
|
|
|
django,
|
|
|
|
dj-database-url,
|
|
|
|
}:
|
2017-06-27 21:12:29 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-polymorphic";
|
2022-05-19 01:42:02 +02:00
|
|
|
version = "3.1";
|
2023-12-07 16:53:02 +13:00
|
|
|
format = "setuptools";
|
2017-06-27 21:12:29 +00:00
|
|
|
|
2018-03-02 03:05:55 +01:00
|
|
|
src = fetchFromGitHub {
|
2022-05-19 01:42:02 +02:00
|
|
|
owner = "django-polymorphic";
|
|
|
|
repo = "django-polymorphic";
|
2018-03-02 03:05:55 +01:00
|
|
|
rev = "v${version}";
|
2023-03-03 01:48:06 +01:00
|
|
|
hash = "sha256-JJY+FoMPSnWuSsNIas2JedGJpdm6RfPE3E1VIjGuXIc=";
|
2017-06-27 21:12:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ dj-database-url ];
|
2022-05-19 01:42:02 +02:00
|
|
|
|
2018-03-02 03:05:55 +01:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} runtests.py
|
|
|
|
'';
|
|
|
|
|
2022-05-19 01:42:02 +02:00
|
|
|
pythonImportsCheck = [ "polymorphic" ];
|
|
|
|
|
2021-01-24 01:29:22 +01:00
|
|
|
meta = with lib; {
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/django-polymorphic/django-polymorphic";
|
2017-06-27 21:12:29 +00:00
|
|
|
description = "Improved Django model inheritance with automatic downcasting";
|
2021-01-24 01:29:22 +01:00
|
|
|
license = licenses.bsd3;
|
2023-07-23 19:30:22 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-06-27 21:12:29 +00:00
|
|
|
};
|
|
|
|
}
|