Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / django-tastypie / default.nix
blob004773037e887e716d3fc3991211c84a1a744299
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , python-dateutil
5 , python-mimeparse
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "django-tastypie";
11   version = "0.14.6";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "django-tastypie";
18     repo = pname;
19     rev = "refs/tags/v${version}";
20     hash = "sha256-emZVcycGLa8Z2yMv/NWZi1b5fPk50u841cFfFF3Ke/s=";
21   };
23   propagatedBuildInputs = [
24     python-dateutil
25     python-mimeparse
26   ];
28   # Tests requires a Django instance
29   doCheck = false;
31   pythonImportsCheck = [
32     "tastypie"
33   ];
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   };