From d4af3fa92901bc632d71b1b446a2e949da45c004 Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Fri, 9 Feb 2024 22:16:33 +0000 Subject: [PATCH] python3Packages.pyscaffoldext-django: init at 0.2 --- .../pyscaffoldext-django/default.nix | 60 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 62 insertions(+) create mode 100644 pkgs/development/python-modules/pyscaffoldext-django/default.nix diff --git a/pkgs/development/python-modules/pyscaffoldext-django/default.nix b/pkgs/development/python-modules/pyscaffoldext-django/default.nix new file mode 100644 index 000000000000..9a7725ad3244 --- /dev/null +++ b/pkgs/development/python-modules/pyscaffoldext-django/default.nix @@ -0,0 +1,60 @@ +{ lib +, buildPythonPackage +, fetchPypi +, setuptools +, setuptools-scm +, wheel +, django +, pyscaffold +, configupdater +, pre-commit +, pytest +, pytest-cov +, pytest-xdist +, tox +, virtualenv +}: + +buildPythonPackage rec { + pname = "pyscaffoldext-django"; + version = "0.2"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-5yzF3VK/9VlCSrRsRJWX4arr9n34G2R6O5A51jTpLhg="; + }; + + nativeBuildInputs = [ + setuptools + setuptools-scm + wheel + ]; + + propagatedBuildInputs = [ + django + pyscaffold + ]; + + passthru.optional-dependencies = { + testing = [ + configupdater + pre-commit + pytest + pytest-cov + pytest-xdist + setuptools-scm + tox + virtualenv + ]; + }; + + pythonImportsCheck = [ "pyscaffoldext.django" ]; + + meta = with lib; { + description = "Integration of django builtin scaffold cli (django-admin) into PyScaffold"; + homepage = "https://pypi.org/project/pyscaffoldext-django/"; + license = licenses.mit; + maintainers = with maintainers; [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e2366a0b49d4..f8f9d2cc729d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11314,6 +11314,8 @@ self: super: with self; { pyscaffoldext-custom-extension = callPackage ../development/python-modules/pyscaffoldext-custom-extension { }; + pyscaffoldext-django = callPackage ../development/python-modules/pyscaffoldext-django { }; + pyscaffoldext-dsproject = callPackage ../development/python-modules/pyscaffoldext-dsproject { }; pyscaffoldext-markdown = callPackage ../development/python-modules/pyscaffoldext-markdown { };