2019-12-22 20:25:58 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, django, isPy27 }:
|
|
|
|
|
2017-02-27 10:03:17 +00:00
|
|
|
buildPythonPackage rec {
|
2020-10-25 09:06:51 +00:00
|
|
|
version = "3.11.2";
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "djangorestframework";
|
2019-12-22 20:25:58 +00:00
|
|
|
disabled = isPy27;
|
2017-02-27 10:03:17 +00:00
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 09:06:51 +00:00
|
|
|
sha256 = "a5967b68a04e0d97d10f4df228e30f5a2d82ba63b9d03e1759f84993b7bf1b53";
|
2017-02-27 10:03:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Test settings are missing
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Web APIs for Django, made easy";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.django-rest-framework.org/";
|
2017-02-27 10:03:17 +00:00
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|