Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ruyaml / default.nix
blob8779325d9b23d609784e26665ae89d66c98f69ae
1 { lib
2 , buildPythonPackage
3 , distro
4 , fetchFromGitHub
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools-scm
8 , setuptools-scm-git-archive
9 }:
11 buildPythonPackage rec {
12   pname = "ruyaml";
13   version = "0.91.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "pycontribs";
20     repo = pname;
21     rev = "v${version}";
22     sha256 = "0gxvwry7n1gczxkjzyfrr3fammllkvnnamja4yln8xrg3n1h89al";
23   };
25   nativeBuildInputs = [
26     setuptools-scm
27     setuptools-scm-git-archive
28   ];
30   SETUPTOOLS_SCM_PRETEND_VERSION = version;
32   propagatedBuildInputs = [
33     distro
34   ];
36   nativeCheckInputs = [
37     pytestCheckHook
38   ];
40   pytestFlagsArray = [
41     "-W" "ignore::DeprecationWarning"
42   ];
44   pythonImportsCheck = [
45     "ruyaml"
46   ];
48   meta = with lib; {
49     description = "YAML 1.2 loader/dumper package for Python";
50     homepage = "https://ruyaml.readthedocs.io/";
51     license = with licenses; [ mit ];
52     maintainers = with maintainers; [ fab ];
53   };