mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
8056f9250c
The setuptools-scm packages gained a setup hook, that sets it to the derivation version automatically, so setting it to that manually has become redundant. This also affects downstream consumers of setuptools-scm, like hatch-vcs or flit-scm.
72 lines
1.3 KiB
Nix
72 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, hatchling
|
|
, hatch-vcs
|
|
, openssh
|
|
, ps
|
|
, psutil
|
|
, pytest-mock
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "plumbum";
|
|
version = "1.8.2";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tomerfiliba";
|
|
repo = "plumbum";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-b8JcGRHiZSv/ViyEogpLgGXOMHHSC+cjWT0FqhkolcA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace '"--cov-config=setup.cfg", ' ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
openssh
|
|
ps
|
|
psutil
|
|
pytest-mock
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMP
|
|
'';
|
|
|
|
disabledTests = [
|
|
# broken in nix env
|
|
"test_change_env"
|
|
"test_dictlike"
|
|
"test_local"
|
|
# incompatible with pytest 7
|
|
"test_incorrect_login"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# incompatible with pytest7
|
|
# https://github.com/tomerfiliba/plumbum/issues/594
|
|
"tests/test_remote.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/tomerfiliba/plumbum/releases/tag/v${version}";
|
|
description = " Plumbum: Shell Combinators ";
|
|
homepage = " https://github.com/tomerfiliba/plumbum ";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|