depot/third_party/nixpkgs/pkgs/development/python-modules/django-rest-polymorphic/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

45 lines
906 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, django-polymorphic
, djangorestframework
, pytest-django
, pytest-mock
, pytestCheckHook
, six
}:
buildPythonPackage rec {
pname = "django-rest-polymorphic";
version = "0.1.9";
src = fetchFromGitHub {
owner = "apirobot";
repo = "django-rest-polymorphic";
rev = "v${version}";
sha256 = "sha256-p3ew2NONSyiGzDzxGTy/cx3fcQhhvnzqopJzgqhXadY=";
};
propagatedBuildInputs = [
django
django-polymorphic
djangorestframework
six
];
checkInputs = [
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; [ SuperSandro2000 ];
};
}