1{ stdenv, buildPythonPackage, fetchPypi, django, isPy27 }:
2
3buildPythonPackage rec {
4 version = "3.11.1";
5 pname = "djangorestframework";
6 disabled = isPy27;
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "6dd02d5a4bd2516fb93f80360673bf540c3b6641fec8766b1da2870a5aa00b32";
11 };
12
13 # Test settings are missing
14 doCheck = false;
15
16 propagatedBuildInputs = [ django ];
17
18 meta = with stdenv.lib; {
19 description = "Web APIs for Django, made easy";
20 homepage = "https://www.django-rest-framework.org/";
21 maintainers = with maintainers; [ desiderius ];
22 license = licenses.bsd2;
23 };
24}