about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/django-cache-url/default.nix
blob: dee64ebd6ee48297a833dd01f23c1f82d205861e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:

buildPythonPackage rec {
  version = "3.2.2";
  pname = "django-cache-url";

  src = fetchFromGitHub {
    owner = "epicserve";
    repo = "django-cache-url";
    rev = "v${version}";
    sha256 = "0fxma2w6zl3cfl6wnynmlmp8snks67ffz4jcq4qmdc65xv1l204l";
  };

  postPatch = ''
    # disable coverage tests
    sed -i '/--cov/d' setup.cfg
  '';

  checkInputs = [ pytestCheckHook ];

  meta = with lib; {
    homepage = "https://github.com/epicserve/django-cache-url";
    description = "Use Cache URLs in your Django application";
    license = licenses.mit;
    maintainers = [ maintainers.costrouc ];
  };
}