diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-02-08 20:01:42 +0100 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2022-02-08 11:24:37 -0800 |
commit | e9a32bb715147e5698e86cf8c7b749013874f65b (patch) | |
tree | 138bc88482d0f2e63c8ab7b09dc2964afaaafb65 /pkgs | |
parent | 0a21b2930d00a45da9e8f51834893ea667eaf912 (diff) | |
download | nixpkgs-e9a32bb715147e5698e86cf8c7b749013874f65b.tar nixpkgs-e9a32bb715147e5698e86cf8c7b749013874f65b.tar.gz nixpkgs-e9a32bb715147e5698e86cf8c7b749013874f65b.tar.bz2 nixpkgs-e9a32bb715147e5698e86cf8c7b749013874f65b.tar.lz nixpkgs-e9a32bb715147e5698e86cf8c7b749013874f65b.tar.xz nixpkgs-e9a32bb715147e5698e86cf8c7b749013874f65b.tar.zst nixpkgs-e9a32bb715147e5698e86cf8c7b749013874f65b.zip |
python39Packages.plumbum: fix version, enable tests, add meta
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/plumbum/default.nix | 60 |
1 files changed, 51 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/plumbum/default.nix b/pkgs/development/python-modules/plumbum/default.nix index e571f276f28..ae3c4941f68 100644 --- a/pkgs/development/python-modules/plumbum/default.nix +++ b/pkgs/development/python-modules/plumbum/default.nix @@ -1,19 +1,61 @@ -{ buildPythonPackage -, fetchPypi -, pytest +{ lib +, buildPythonPackage +, fetchFromGitHub +, openssh +, ps +, psutil +, pytest-mock +, pytest-timeout +, pytestCheckHook +, setuptools-scm }: buildPythonPackage rec { pname = "plumbum"; version = "1.7.2"; - checkInputs = [ pytest ]; + src = fetchFromGitHub { + owner = "tomerfiliba"; + repo = "plumbum"; + rev = "v${version}"; + sha256 = "sha256-bCCcNFz+ZsbKSF7aCfy47lBHb873tDYN0qFuSCxJp1w="; + }; + + postPatch = '' + substituteInPlace setup.cfg \ + --replace "--cov-config=setup.cfg" "" + ''; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools-scm + ]; + + checkInputs = [ + openssh + ps + psutil + pytest-mock + pytest-timeout + pytestCheckHook + ]; + + preCheck = '' + export HOME=$TMP + ''; - # No tests in archive - doCheck = false; + disabledTests = [ + # broken in nix env + "test_change_env" + "test_dictlike" + "test_local" + ]; - src = fetchPypi { - inherit pname version; - sha256 = "0d1bf908076bbd0484d16412479cb97d6843069ee19f99e267e11dd980040523"; + meta = with lib; { + description = " Plumbum: Shell Combinators "; + homepage = " https://github.com/tomerfiliba/plumbum "; + license = licenses.mit; + maintainers = with maintainers; [ ]; }; } |