1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, pytest
5}:
6
7buildPythonPackage rec {
8 version = "3.1.2";
9 pname = "django-cache-url";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "d0ee0d6c5daab92787bff47a4a6f5a6cf97c3c80d81a990820b2af16e12ad65a";
14 };
15
16 checkInputs = [ pytest ];
17
18 checkPhase = ''
19 pytest tests
20 '';
21
22 # tests not included with pypi release
23 doCheck = false;
24
25 meta = with stdenv.lib; {
26 homepage = "https://github.com/ghickman/django-cache-url";
27 description = "Use Cache URLs in your Django application";
28 license = licenses.mit;
29 maintainers = [ maintainers.costrouc ];
30 };
31}