about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2022-04-16 20:27:08 +0200
committerGitHub <noreply@github.com>2022-04-16 20:27:08 +0200
commit685cececc239ea57dfa3e148dd6219269c526299 (patch)
tree26205e5084efc0ad06101891f31358be23764659 /pkgs/development
parent36873851dc6b084ec0f997db35bfe0e81581a221 (diff)
parent5a1c6f1d63c2a1debe221c33f20aa0ee8c4dcfa7 (diff)
Merge pull request #151031 from prusnak/shiv
python3Packages.shiv: init at 1.0.0
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/shiv/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/shiv/default.nix b/pkgs/development/python-modules/shiv/default.nix
new file mode 100644
index 0000000000000..14cb688be4643
--- /dev/null
+++ b/pkgs/development/python-modules/shiv/default.nix
@@ -0,0 +1,34 @@
+{ stdenv
+, lib
+, buildPythonPackage
+, fetchPypi
+, click
+, pip
+, setuptools
+, wheel
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "shiv";
+  version = "1.0.1";
+  format = "pyproject";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "ec16095a0565906536af7f5e57771e9ae7a061b646ed63ad66ebbc70c30f4d2a";
+  };
+
+  propagatedBuildInputs = [ click pip setuptools wheel ];
+
+  pythonImportsCheck = [ "shiv" ];
+
+  checkInputs = [ pytestCheckHook ];
+
+  meta = with lib; {
+    description = "Command line utility for building fully self contained Python zipapps";
+    homepage = "https://github.com/linkedin/shiv";
+    license = licenses.bsd2;
+    maintainers = with maintainers; [ prusnak ];
+  };
+}