Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ruyaml / default.nix
blob4131200f2276a554e1e35dccaef76e4e71dc70b9
1 { lib
2 , buildPythonPackage
3 , distro
4 , fetchFromGitHub
5 , fetchpatch
6 , pytestCheckHook
7 , pythonOlder
8 , setuptools-scm
9 }:
11 buildPythonPackage rec {
12   pname = "ruyaml";
13   version = "0.91.0";
14   pyproject = true;
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "pycontribs";
20     repo = "ruyaml";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-A37L/voBrn2aZ7xT8+bWdZJxbWRjnxbstQtSyUeN1sA=";
23   };
25   postPatch = ''
26     # https://github.com/pycontribs/ruyaml/pull/107
27     substituteInPlace pyproject.toml \
28       --replace '"pip >= 19.3.1",' "" \
29       --replace '"setuptools_scm_git_archive >= 1.1",' ""
30   '';
32   nativeBuildInputs = [
33     setuptools-scm
34   ];
36   propagatedBuildInputs = [
37     distro
38   ];
40   nativeCheckInputs = [
41     pytestCheckHook
42   ];
44   pytestFlagsArray = [
45     "-W" "ignore::DeprecationWarning"
46   ];
48   pythonImportsCheck = [
49     "ruyaml"
50   ];
52   disabledTests = [
53     # Assertion error
54     "test_issue_60"
55     "test_issue_60_1"
56     "test_issue_61"
57   ];
59   meta = with lib; {
60     description = "YAML 1.2 loader/dumper package for Python";
61     homepage = "https://ruyaml.readthedocs.io/";
62     changelog = "https://github.com/pycontribs/ruyaml/releases/tag/v${version}";
63     license = with licenses; [ mit ];
64     maintainers = with maintainers; [ fab ];
65   };