mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
02dab4ab5c
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
53 lines
944 B
Nix
53 lines
944 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, coreapi
|
|
, django
|
|
, django-guardian
|
|
, pythonOlder
|
|
, pytest-django
|
|
, pytestCheckHook
|
|
, pytz
|
|
, pyyaml
|
|
, uritemplate
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "djangorestframework";
|
|
version = "3.14.0";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "encode";
|
|
repo = "django-rest-framework";
|
|
rev = version;
|
|
hash = "sha256-Fnj0n3NS3SetOlwSmGkLE979vNJnYE6i6xwVBslpNz4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
pytz
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-django
|
|
pytestCheckHook
|
|
|
|
# optional tests
|
|
coreapi
|
|
django-guardian
|
|
pyyaml
|
|
uritemplate
|
|
];
|
|
|
|
pythonImportsCheck = [ "rest_framework" ];
|
|
|
|
meta = with lib; {
|
|
description = "Web APIs for Django, made easy";
|
|
homepage = "https://www.django-rest-framework.org/";
|
|
maintainers = with maintainers; [ desiderius ];
|
|
license = licenses.bsd2;
|
|
};
|
|
}
|