ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / plumbum / default.nix
blob70b4421778f3ef607c789fa6ccbfd82a74963373
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , openssh
5 , ps
6 , psutil
7 , pytest-mock
8 , pytest-timeout
9 , pytestCheckHook
10 , setuptools-scm
13 buildPythonPackage rec {
14   pname = "plumbum";
15   version = "1.7.2";
17   src = fetchFromGitHub {
18     owner = "tomerfiliba";
19     repo = "plumbum";
20     rev = "v${version}";
21     sha256 = "sha256-bCCcNFz+ZsbKSF7aCfy47lBHb873tDYN0qFuSCxJp1w=";
22   };
24   postPatch = ''
25     substituteInPlace setup.cfg \
26       --replace "--cov-config=setup.cfg" ""
27   '';
29   SETUPTOOLS_SCM_PRETEND_VERSION = version;
31   nativeBuildInputs = [
32     setuptools-scm
33   ];
35   checkInputs = [
36     openssh
37     ps
38     psutil
39     pytest-mock
40     pytest-timeout
41     pytestCheckHook
42   ];
44   preCheck = ''
45     export HOME=$TMP
46   '';
48   disabledTests = [
49     # broken in nix env
50     "test_change_env"
51     "test_dictlike"
52     "test_local"
53     # incompatible with pytest 7
54     "test_incorrect_login"
55   ];
57   disabledTestPaths = [
58     # incompatible with pytest7
59     # https://github.com/tomerfiliba/plumbum/issues/594
60     "tests/test_remote.py"
61   ];
63   meta = with lib; {
64     description = " Plumbum: Shell Combinators ";
65     homepage = " https://github.com/tomerfiliba/plumbum ";
66     license = licenses.mit;
67     maintainers = with maintainers; [ ];
68   };