about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ruyaml
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-06-04 22:49:54 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-06-04 22:51:48 +0200
commit18118ea948d69b88be4420a9cdd1483432818d50 (patch)
tree526f2e2f7ddbf80ac83c60fc9e8a692ca36e0b6d /pkgs/development/python-modules/ruyaml
parentb096b6d308ddbb168078343bdbf75f91d0bd27ff (diff)
python3packages.ruyaml: init at 0.90.0.2
Diffstat (limited to 'pkgs/development/python-modules/ruyaml')
-rw-r--r--pkgs/development/python-modules/ruyaml/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ruyaml/default.nix b/pkgs/development/python-modules/ruyaml/default.nix
new file mode 100644
index 0000000000000..3b5a0d41283e4
--- /dev/null
+++ b/pkgs/development/python-modules/ruyaml/default.nix
@@ -0,0 +1,46 @@
+{ lib
+, buildPythonPackage
+, distro
+, fetchFromGitHub
+, pytestCheckHook
+, pythonOlder
+, setuptools-scm
+, setuptools-scm-git-archive
+}:
+
+buildPythonPackage rec {
+  pname = "ruyaml";
+  version = "0.90.0.2";
+  disabled = pythonOlder "3.6";
+
+  src = fetchFromGitHub {
+    owner = "pycontribs";
+    repo = pname;
+    rev = version;
+    sha256 = "0gxvwry7n1gczxkjzyfrr3fammllkvnnamja4yln8xrg3n1h89al";
+  };
+
+  nativeBuildInputs = [
+    setuptools-scm
+    setuptools-scm-git-archive
+  ];
+
+  SETUPTOOLS_SCM_PRETEND_VERSION = version;
+
+  propagatedBuildInputs = [
+    distro
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [ "ruyaml" ];
+
+  meta = with lib; {
+    description = "YAML 1.2 loader/dumper package for Python";
+    homepage = "https://ruyaml.readthedocs.io/";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}