1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, python-dateutil
5, python-mimeparse
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "django-tastypie";
11 version = "0.14.6";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "django-tastypie";
18 repo = pname;
19 rev = "refs/tags/v${version}";
20 hash = "sha256-emZVcycGLa8Z2yMv/NWZi1b5fPk50u841cFfFF3Ke/s=";
21 };
22
23 propagatedBuildInputs = [
24 python-dateutil
25 python-mimeparse
26 ];
27
28 # Tests requires a Django instance
29 doCheck = false;
30
31 pythonImportsCheck = [
32 "tastypie"
33 ];
34
35 meta = with lib; {
36 description = "Utilities and helpers for writing Pylint plugins";
37 homepage = "https://github.com/django-tastypie/django-tastypie";
38 changelog = "https://github.com/django-tastypie/django-tastypie/releases/tag/v${version}";
39 license = licenses.gpl2Only;
40 maintainers = with maintainers; [ fab ];
41 };
42}