nixpkgs/pkgs/development/python-modules/django-rest-polymorphic/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

48 lines
1.0 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, django-polymorphic
, djangorestframework
, pytest-django
, pytest-mock
, pytestCheckHook
, six
}:
buildPythonPackage rec {
pname = "django-rest-polymorphic";
version = "0.1.10";
format = "setuptools";
src = fetchFromGitHub {
owner = "apirobot";
repo = "django-rest-polymorphic";
# https://github.com/denisorehovsky/django-rest-polymorphic/issues/42
rev = "9d920eb91ef13144094426f9ebc0ca80247c0fe3";
hash = "sha256-k7Cl2QYkaGOZaTo8v5Wg9Wqh8x0WC5i9Sggqj8eeECY=";
};
propagatedBuildInputs = [
django
django-polymorphic
djangorestframework
six
];
nativeCheckInputs = [
pytest-django
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "rest_polymorphic" ];
meta = with lib; {
description = "Polymorphic serializers for Django REST Framework";
homepage = "https://github.com/apirobot/django-rest-polymorphic";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}