From 18118ea948d69b88be4420a9cdd1483432818d50 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 4 Jun 2021 22:49:54 +0200 Subject: [PATCH] python3packages.ruyaml: init at 0.90.0.2 --- .../python-modules/ruyaml/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/ruyaml/default.nix diff --git a/pkgs/development/python-modules/ruyaml/default.nix b/pkgs/development/python-modules/ruyaml/default.nix new file mode 100644 index 000000000000..3b5a0d41283e --- /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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d39487bf1ec7..08dddc67afcd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7417,6 +7417,8 @@ in { runway-python = callPackage ../development/python-modules/runway-python { }; + ruyaml = callPackage ../development/python-modules/ruyaml { }; + rx = callPackage ../development/python-modules/rx { }; rxv = callPackage ../development/python-modules/rxv { };