ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / django-picklefield / default.nix
blobb1dab2e73c9176e28cb91eb89e600ebc44c856cf
1 { lib, buildPythonPackage, fetchFromGitHub, django, pytest, pytest-django, python }:
3 buildPythonPackage rec {
4   pname = "django-picklefield";
5   version = "3.0.1";
6   format = "setuptools";
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   };
16   propagatedBuildInputs = [ django ];
18   # Tests are failing with Django 3.2
19   # https://github.com/gintas/django-picklefield/issues/58
20   doCheck = false;
22   checkPhase = ''
23     runHook preCheck
24     ${python.interpreter} -m django test --settings=tests.settings
25     runHook postCheck
26   '';
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   };