Files
nixpkgs/pkgs/development/python-modules/in-n-out/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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 = {
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 = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}