1{ lib, buildPythonPackage, fetchFromGitHub, django, pytest, pytest-django }: 2 3buildPythonPackage rec { 4 pname = "django-picklefield"; 5 version = "3.0.1"; 6 7 # The PyPi source doesn't contain tests 8 src = fetchFromGitHub { 9 owner = "gintas"; 10 repo = pname; 11 rev = "v${version}"; 12 sha256 = "0ni7bc86k0ra4pc8zv451pzlpkhs1nyil1sq9jdb4m2mib87b5fk"; 13 }; 14 15 propagatedBuildInputs = [ django ]; 16 17 checkInputs = [ pytest pytest-django ]; 18 19 checkPhase = '' 20 PYTHONPATH="$(pwd):$PYTHONPATH" \ 21 DJANGO_SETTINGS_MODULE=tests.settings \ 22 pytest tests/tests.py 23 ''; 24 25 meta = { 26 description = "A pickled object field for Django"; 27 homepage = "https://github.com/gintas/django-picklefield"; 28 license = lib.licenses.mit; 29 }; 30}