2020-09-06 11:15:20 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, django, pytest, pytest-django }:
|
2017-08-31 20:17:22 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-picklefield";
|
2020-06-06 07:47:04 +01:00
|
|
|
version = "3.0.1";
|
2017-08-31 20:17:22 +01:00
|
|
|
|
2020-09-06 11:15:20 +01:00
|
|
|
# The PyPi source doesn't contain tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gintas";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0ni7bc86k0ra4pc8zv451pzlpkhs1nyil1sq9jdb4m2mib87b5fk";
|
2019-03-25 11:49:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
2020-09-06 11:15:20 +01:00
|
|
|
checkInputs = [ pytest pytest-django ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
PYTHONPATH="$(pwd):$PYTHONPATH" \
|
|
|
|
DJANGO_SETTINGS_MODULE=tests.settings \
|
|
|
|
pytest tests/tests.py
|
|
|
|
'';
|
|
|
|
|
2017-08-31 20:17:22 +01:00
|
|
|
meta = {
|
|
|
|
description = "A pickled object field for Django";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/gintas/django-picklefield";
|
2017-08-31 20:17:22 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|