1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
django,
|
|
djangorestframework,
|
|
pytestCheckHook,
|
|
pytest-django,
|
|
python,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "djangorestframework-csv";
|
|
version = "3.0.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mjumbewu";
|
|
repo = "django-rest-framework-csv";
|
|
tag = version;
|
|
hash = "sha256-XtMkSucB7+foRpTaRfGF1Co0n3ONNGyzex6MXR4xM5c=";
|
|
};
|
|
|
|
dependencies = [
|
|
django
|
|
djangorestframework
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pytest-django
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
${python.interpreter} manage.py test
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "rest_framework_csv" ];
|
|
|
|
meta = {
|
|
description = "CSV Tools for Django REST Framework";
|
|
homepage = "https://github.com/mjumbewu/django-rest-framework-csv";
|
|
changelog = "https://github.com/mjumbewu/django-rest-framework-csv/releases/tag/${version}";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = [ lib.maintainers.onny ];
|
|
};
|
|
}
|