about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2024-05-16 19:47:05 +0200
committerGitHub <noreply@github.com>2024-05-16 19:47:05 +0200
commitc2f97d3f55d7555d5d6cf6df8f37c3055516d008 (patch)
tree6de76503fcaee8d19c6190fc75e59eff77bdf25d /pkgs/development
parentc646f3c6ca7aa9ce6779be7917e360c1f4d1d304 (diff)
parent031f89ddf3b207646a54fca83ad38bc5e62a890d (diff)
Merge pull request #309716 from RmiTtro/pipetools
python3Packages.pipetools: init at 1.1.0
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/pipetools/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pipetools/default.nix b/pkgs/development/python-modules/pipetools/default.nix
new file mode 100644
index 0000000000000..9003f61b28e89
--- /dev/null
+++ b/pkgs/development/python-modules/pipetools/default.nix
@@ -0,0 +1,32 @@
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  pytestCheckHook,
+  setuptools,
+}:
+
+buildPythonPackage rec {
+  pname = "pipetools";
+  version = "1.1.0";
+
+  # Used github as the src since the pypi package does not include the tests
+  src = fetchFromGitHub {
+    owner = "0101";
+    repo = pname;
+    rev = "6cba9fadab07a16fd85eed16d5cffc609f84c62b";
+    hash = "sha256-BoZFePQCQfz1dkct5p/WQLuXoNX3eLcnKf3Mf0fG6u8=";
+  };
+
+  nativeCheckInputs = [ pytestCheckHook ];
+
+  propagatedBuildInputs = [ setuptools ];
+
+  pythonImportsCheck = [ "pipetools" ];
+
+  meta = {
+    description = "A library that enables function composition similar to using Unix pipes";
+    homepage = "https://0101.github.io/pipetools/";
+    license = lib.licenses.mit;
+  };
+}