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.0.1";
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 = "0ni7bc86k0ra4pc8zv451pzlpkhs1nyil1sq9jdb4m2mib87b5fk";
22 };
23
24 propagatedBuildInputs = [ django ];
25
26 # Tests are failing with Django 3.2
27 # https://github.com/gintas/django-picklefield/issues/58
28 doCheck = false;
29
30 checkPhase = ''
31 runHook preCheck
32 ${python.interpreter} -m django test --settings=tests.settings
33 runHook postCheck
34 '';
35
36 meta = with lib; {
37 description = "A pickled object field for Django";
38 homepage = "https://github.com/gintas/django-picklefield";
39 license = licenses.mit;
40 maintainers = with maintainers; [ ];
41 };
42}