Skip to content

Commit

Permalink
python3Packages.djangorestframework-csv: init at 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
onny committed Oct 21, 2024
1 parent e404842 commit 3f826e9
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
pythonOlder,
djangorestframework,
pytestCheckHook,
pytest-django,
python,
}:

buildPythonPackage rec {
pname = "djangorestframework-csv";
version = "3.0.2";
format = "setuptools";

disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "mjumbewu";
repo = "django-rest-framework-csv";
rev = "refs/tags/${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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3514,6 +3514,8 @@ self: super: with self; {

djangorestframework-camel-case = callPackage ../development/python-modules/djangorestframework-camel-case { };

djangorestframework-csv = callPackage ../development/python-modules/djangorestframework-csv { };

djangorestframework-guardian = callPackage ../development/python-modules/djangorestframework-guardian { };

djangorestframework-guardian2 = callPackage ../development/python-modules/djangorestframework-guardian2 { };
Expand Down

0 comments on commit 3f826e9

Please sign in to comment.