depot/third_party/nixpkgs/pkgs/development/python-modules/django-picklefield/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

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 = [ ];
};
}