about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pdm-pep517
diff options
context:
space:
mode:
authorPhillip Cloud <417981+cpcloud@users.noreply.github.com>2022-01-17 14:11:13 -0500
committerGitHub <noreply@github.com>2022-01-17 20:11:13 +0100
commit68d7778e92165b0ce6025b0b63169bd634313bc3 (patch)
tree209383418d5a0c550b61c55fdfa95b6eac296e57 /pkgs/development/python-modules/pdm-pep517
parentff94ec104348c64f491a2bde9fe84ceecc42695e (diff)
python3Packages.pdm-pep517: init at 0.9.4 (#155385)
* python3Packages.pdm-pep517: init at 0.9.4

* chore: get git tests to work

* chore: coverage isn't run during tests so it doesn't need to be in the closure
Diffstat (limited to 'pkgs/development/python-modules/pdm-pep517')
-rw-r--r--pkgs/development/python-modules/pdm-pep517/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pdm-pep517/default.nix b/pkgs/development/python-modules/pdm-pep517/default.nix
new file mode 100644
index 0000000000000..11d677e110041
--- /dev/null
+++ b/pkgs/development/python-modules/pdm-pep517/default.nix
@@ -0,0 +1,38 @@
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchPypi
+, git
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "pdm-pep517";
+  version = "0.9.4";
+  format = "pyproject";
+  disabled = pythonOlder "3.7";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "sha256-2o2FuuvS5PW7uhxl3EGBP75CZ3dcyjPoug1k0irl51c=";
+  };
+
+  preCheck = ''
+    HOME=$TMPDIR
+
+    git config --global user.name nobody
+    git config --global user.email nobody@example.com
+  '';
+
+  checkInputs = [
+    pytestCheckHook
+    git
+  ];
+
+  meta = with lib; {
+    homepage = "https://github.com/pdm-project/pdm-pep517";
+    description = "Yet another PEP 517 backend.";
+    license = licenses.mit;
+    maintainers = with maintainers; [ cpcloud ];
+  };
+}