2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
django,
|
|
|
|
pytest,
|
|
|
|
pytest-django,
|
|
|
|
python,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-picklefield";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "3.0.1";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
# The PyPi source doesn't contain tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gintas";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0ni7bc86k0ra4pc8zv451pzlpkhs1nyil1sq9jdb4m2mib87b5fk";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
# Tests are failing with Django 3.2
|
|
|
|
# https://github.com/gintas/django-picklefield/issues/58
|
|
|
|
doCheck = false;
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
2022-03-30 09:31:56 +00:00
|
|
|
runHook preCheck
|
|
|
|
${python.interpreter} -m django test --settings=tests.settings
|
|
|
|
runHook postCheck
|
2020-09-25 04:45:31 +00:00
|
|
|
'';
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A pickled object field for Django";
|
|
|
|
homepage = "https://github.com/gintas/django-picklefield";
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|