2022-05-06 21:09:29 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python-dateutil
|
|
|
|
, python-mimeparse
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-tastypie";
|
2023-01-28 09:35:11 +00:00
|
|
|
version = "0.14.5";
|
2022-05-06 21:09:29 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "django-tastypie";
|
|
|
|
repo = pname;
|
2023-01-28 09:34:34 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-28 09:35:11 +00:00
|
|
|
hash = "sha256-RgYinpo8eVzRaSkcnFkSq+IqpcFt6LCCHkpHyB/7u5M=";
|
2022-05-06 21:09:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-dateutil
|
|
|
|
python-mimeparse
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests requires a Django instance
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"tastypie"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Utilities and helpers for writing Pylint plugins";
|
|
|
|
homepage = "https://github.com/django-tastypie/django-tastypie";
|
2023-01-28 09:34:34 +00:00
|
|
|
changelog = "https://github.com/django-tastypie/django-tastypie/releases/tag/v${version}";
|
2022-05-06 21:09:29 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|