mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
hatchling,
|
|
pytest,
|
|
tappy,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-tap";
|
|
version = "3.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-tap";
|
|
repo = "pytest-tap";
|
|
rev = "v${version}";
|
|
hash = "sha256-IuVtH1hrynbFDmz7IZ6vef9bAwl8L1eqR9WYQVL6CCA=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
# see https://github.com/python-tap/pytest-tap/pull/105
|
|
name = "missing-package-in-wheel.patch";
|
|
url = "https://github.com/python-tap/pytest-tap/commit/056a44a632b1af19d9ba4b5044768bde3dd6a764.patch";
|
|
hash = "sha256-P52NqgXtnO2SthDwVbT+NVPeBNhjGS/8Vsbe/WLCc3A=";
|
|
})
|
|
];
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ tappy ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "pytest_tap" ];
|
|
|
|
meta = {
|
|
description = "Test Anything Protocol (TAP) reporting plugin for pytest";
|
|
homepage = "https://github.com/python-tap/pytest-tap";
|
|
changelog = "https://github.com/python-tap/pytest-tap/blob/v${version}/docs/releases.rst";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ cynerd ];
|
|
};
|
|
}
|