nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 python-dateutil,
6 python-mimeparse,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "django-tastypie";
12 version = "0.15.1";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "django-tastypie";
17 repo = "django-tastypie";
18 tag = "v${version}";
19 hash = "sha256-KmBI8kHcmRfbNIfBEz5pHyseWcWnfP3tq6GAPi4tdhE=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 python-dateutil
26 python-mimeparse
27 ];
28
29 # Tests requires a Django instance
30 doCheck = false;
31
32 pythonImportsCheck = [ "tastypie" ];
33
34 meta = {
35 description = "Utilities and helpers for writing Pylint plugins";
36 homepage = "https://github.com/django-tastypie/django-tastypie";
37 changelog = "https://github.com/django-tastypie/django-tastypie/releases/tag/v${version}";
38 license = lib.licenses.gpl2Only;
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}