about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-12-31 13:49:05 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-01-05 01:10:14 +0100
commit3b8c42c9b04a3c8a1e40b62ae9e274c89af87c0b (patch)
treed494a07d3444bac4a39aadfc98affa8a49952594 /pkgs/development
parente6e62e9014765d34c22c05efe09d5c06d4252791 (diff)
python3Packages.hatch-requirements-txt: init at 0.3.0
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/hatch-requirements-txt/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hatch-requirements-txt/default.nix b/pkgs/development/python-modules/hatch-requirements-txt/default.nix
new file mode 100644
index 0000000000000..b7ba9446575de
--- /dev/null
+++ b/pkgs/development/python-modules/hatch-requirements-txt/default.nix
@@ -0,0 +1,45 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, hatch
+, hatchling
+, packaging
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "hatch-requirements-txt";
+  version = "0.3.0";
+  format = "pyproject";
+
+  src = fetchFromGitHub {
+    owner = "repo-helper";
+    repo = "hatch-requirements-txt";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-Gyt5Fs8uqVe0cOKtxFeg1n1WMyeK5Iokh71ynb2i5cM=";
+  };
+
+  nativeBuildInputs = [
+    hatch
+  ];
+
+  propagatedBuildInputs = [
+    hatchling
+    packaging
+  ];
+
+  doCheck = false; # missing coincidence dependency
+
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  meta = with lib; {
+    changelog = "https://github.com/repo-helper/hatch-requirements-txt/releases/tag/${version}";
+    description = "Hatchling plugin to read project dependencies from requirements.txt";
+    homepage = "https://github.com/repo-helper/hatch-requirements-txt";
+    license = licenses.mit;
+    maintainers = with maintainers; [ ];
+  };
+}
+