2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, django, isPy27 }:
|
2019-12-22 20:25:58 +00:00
|
|
|
|
2017-02-27 10:03:17 +00:00
|
|
|
buildPythonPackage rec {
|
2021-10-10 01:11:54 +01:00
|
|
|
version = "3.12.4";
|
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
|
|
|
|
2020-12-31 10:25:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "encode";
|
|
|
|
repo = "django-rest-framework";
|
|
|
|
rev = version;
|
2021-10-10 01:11:54 +01:00
|
|
|
sha256 = "sha256-FjMRfVyLmm5J9uOUTLZpO3Pvge3RoYnqIRvzMng7wZo=";
|
2017-02-27 10:03:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Test settings are missing
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-02-27 10:03:17 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|