depot/third_party/nixpkgs/pkgs/development/python-modules/django-picklefield/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

42 lines
917 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
pytest,
pytest-django,
python,
}:
buildPythonPackage rec {
pname = "django-picklefield";
version = "3.0.1";
format = "setuptools";
# The PyPi source doesn't contain tests
src = fetchFromGitHub {
owner = "gintas";
repo = pname;
rev = "v${version}";
sha256 = "0ni7bc86k0ra4pc8zv451pzlpkhs1nyil1sq9jdb4m2mib87b5fk";
};
propagatedBuildInputs = [ django ];
# Tests are failing with Django 3.2
# https://github.com/gintas/django-picklefield/issues/58
doCheck = false;
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 = with maintainers; [ ];
};
}