2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
django,
|
|
|
|
python,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-picklefield";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.2.0";
|
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}";
|
2024-07-27 06:49:29 +00:00
|
|
|
sha256 = "sha256-UMMbJoSHWcdumZOFPhKNUjThGzU/8nhP2J8YsDjgbHo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Pickled object field for Django";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/gintas/django-picklefield";
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|