Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cython,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
pythonAtLeast,
|
|
pythonOlder,
|
|
hatchling,
|
|
hatch-vcs,
|
|
toolz,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "in-n-out";
|
|
version = "0.2.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
pname = "in_n_out";
|
|
inherit version;
|
|
hash = "sha256-Q83it96YHUGm1wYYore9mJSBCVkipT6tTcdfK71d/+o=";
|
|
};
|
|
|
|
build-system = [
|
|
cython
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
toolz
|
|
];
|
|
|
|
pythonImportsCheck = [ "in_n_out" ];
|
|
|
|
disabledTestPaths = lib.optionals (pythonAtLeast "3.11") [
|
|
# Fatal Python error
|
|
"tests/test_injection.py"
|
|
"tests/test_processors.py"
|
|
"tests/test_providers.py"
|
|
"tests/test_store.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module for dependency injection and result processing";
|
|
homepage = "https://github.com/pyapp-kit/in-n-out";
|
|
changelog = "https://github.com/pyapp-kit/in-n-out/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|