5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
36 lines
754 B
Nix
36 lines
754 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
django,
|
|
python,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-picklefield";
|
|
version = "3.2.0";
|
|
format = "setuptools";
|
|
|
|
# The PyPi source doesn't contain tests
|
|
src = fetchFromGitHub {
|
|
owner = "gintas";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-UMMbJoSHWcdumZOFPhKNUjThGzU/8nhP2J8YsDjgbHo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
${python.interpreter} -m django test --settings=tests.settings
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Pickled object field for Django";
|
|
homepage = "https://github.com/gintas/django-picklefield";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|