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