Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
935 B · 51 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152{ lib, buildPythonPackage, fetchFromGitHub, coreapi, django, django-guardian, pythonOlder, pytest-django, pytestCheckHook, pytz, pyyaml, uritemplate}:
buildPythonPackage rec { pname = "djangorestframework"; version = "3.14.0"; 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 SuperSandro2000 ]; license = licenses.bsd2; };}