about summary refs log tree commit diff
path: root/pkgs/development/python2-modules/setuptools-scm
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2022-01-16 07:34:26 +0100
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2022-01-16 10:00:16 +0100
commitae18d68b6b117528e6cd72325ead36b48562d43f (patch)
tree9f9d765a7208d5d436184dc3656b164fd0581f7f /pkgs/development/python2-modules/setuptools-scm
parent2027fb600d891379c53c4762463e65d040359682 (diff)
downloadnixlib-ae18d68b6b117528e6cd72325ead36b48562d43f.tar
nixlib-ae18d68b6b117528e6cd72325ead36b48562d43f.tar.gz
nixlib-ae18d68b6b117528e6cd72325ead36b48562d43f.tar.bz2
nixlib-ae18d68b6b117528e6cd72325ead36b48562d43f.tar.lz
nixlib-ae18d68b6b117528e6cd72325ead36b48562d43f.tar.xz
nixlib-ae18d68b6b117528e6cd72325ead36b48562d43f.tar.zst
nixlib-ae18d68b6b117528e6cd72325ead36b48562d43f.zip
python2.pkgs: move expressions into python2-modules/ folder
Another step in further separating python2 from python3.
Diffstat (limited to 'pkgs/development/python2-modules/setuptools-scm')
-rw-r--r--pkgs/development/python2-modules/setuptools-scm/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/python2-modules/setuptools-scm/default.nix b/pkgs/development/python2-modules/setuptools-scm/default.nix
new file mode 100644
index 000000000000..4cf6f16fedfb
--- /dev/null
+++ b/pkgs/development/python2-modules/setuptools-scm/default.nix
@@ -0,0 +1,24 @@
+{ lib, buildPythonPackage, fetchPypi, toml }:
+
+buildPythonPackage rec {
+  pname = "setuptools_scm";
+  version = "5.0.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "sha256-g6DO3TRJ45RjB4EaTHudicS1/UZKL7XuzNCluxWK5cg=";
+  };
+
+  propagatedBuildInputs = [ toml ];
+
+  # Requires pytest, circular dependency
+  doCheck = false;
+  pythonImportsCheck = [ "setuptools_scm" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/pypa/setuptools_scm/";
+    description = "Handles managing your python package versions in scm metadata";
+    license = licenses.mit;
+    maintainers = with maintainers; [ SuperSandro2000 ];
+  };
+}