1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 django,
6 pytest,
7 pytest-django,
8 python,
9}:
10
11buildPythonPackage rec {
12 pname = "django-picklefield";
13 version = "3.2.0";
14 format = "setuptools";
15
16 # The PyPi source doesn't contain tests
17 src = fetchFromGitHub {
18 owner = "gintas";
19 repo = pname;
20 rev = "v${version}";
21 sha256 = "sha256-UMMbJoSHWcdumZOFPhKNUjThGzU/8nhP2J8YsDjgbHo=";
22 };
23
24 propagatedBuildInputs = [ django ];
25
26 checkPhase = ''
27 runHook preCheck
28 ${python.interpreter} -m django test --settings=tests.settings
29 runHook postCheck
30 '';
31
32 meta = with lib; {
33 description = "Pickled object field for Django";
34 homepage = "https://github.com/gintas/django-picklefield";
35 license = licenses.mit;
36 maintainers = [ ];
37 };
38}