2021-01-25 09:26:54 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2025-01-19 21:15:08 +01:00
|
|
|
setuptools,
|
2021-01-25 09:26:54 +01:00
|
|
|
django,
|
|
|
|
dj-database-url,
|
2025-01-19 21:15:08 +01:00
|
|
|
pytest-django,
|
|
|
|
pytestCheckHook,
|
2021-01-25 09:26:54 +01:00
|
|
|
}:
|
2017-06-27 21:12:29 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-polymorphic";
|
2025-01-19 21:15:08 +01:00
|
|
|
version = "4.0.0";
|
|
|
|
pyproject = true;
|
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";
|
2025-01-19 21:15:08 +01:00
|
|
|
tag = "v${version}";
|
|
|
|
hash = "sha256-cEV9gnc9gLpAVmYkzSaQwDbgXsklMTq71edndDJeP9E=";
|
2017-06-27 21:12:29 +00:00
|
|
|
};
|
|
|
|
|
2025-01-25 20:59:47 +01:00
|
|
|
patches = [
|
|
|
|
# https://github.com/jazzband/django-polymorphic/issues/616
|
|
|
|
./django-5.1-compat.patch
|
|
|
|
];
|
|
|
|
|
2025-01-19 21:15:08 +01:00
|
|
|
build-system = [ setuptools ];
|
2017-06-27 21:12:29 +00:00
|
|
|
|
2025-01-19 21:15:08 +01:00
|
|
|
dependencies = [ django ];
|
2022-05-19 01:42:02 +02:00
|
|
|
|
2025-01-19 21:15:08 +01:00
|
|
|
nativeCheckInputs = [
|
|
|
|
dj-database-url
|
|
|
|
pytest-django
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-03-02 03:05:55 +01:00
|
|
|
|
2022-05-19 01:42:02 +02:00
|
|
|
pythonImportsCheck = [ "polymorphic" ];
|
|
|
|
|
2021-01-24 01:29:22 +01:00
|
|
|
meta = with lib; {
|
2025-01-19 21:15:08 +01:00
|
|
|
changelog = "https://github.com/jazzband/django-polymorphic/releases/tag/${src.tag}";
|
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;
|
2024-07-28 16:44:11 +02:00
|
|
|
maintainers = [ ];
|
2017-06-27 21:12:29 +00:00
|
|
|
};
|
|
|
|
}
|