diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-06-04 22:49:54 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-06-04 22:51:48 +0200 |
commit | 18118ea948d69b88be4420a9cdd1483432818d50 (patch) | |
tree | 526f2e2f7ddbf80ac83c60fc9e8a692ca36e0b6d /pkgs/development/python-modules/ruyaml | |
parent | b096b6d308ddbb168078343bdbf75f91d0bd27ff (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.nix | 46 |
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 ]; + }; +} |