nixpkgs/pkgs/development/python-modules/in-n-out/default.nix
Martin Weinelt 528354e66c
python312Packages.cython: 0.29.36 -> 3.0.9
Folds the cython_3 attribute into the primary cython attribute and
migrates all packages from the versioned attribute.

The old version will be provided through the cython_0 attribute in an
effort to phase it out.
2024-03-27 18:35:05 +01:00

62 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, cython
, fetchPypi
, future
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, hatchling
, hatch-vcs
, toolz
}:
buildPythonPackage rec {
pname = "in-n-out";
version = "0.2.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "in_n_out";
inherit version;
hash = "sha256-hKJb2/DKl2Dd+rgndujNJWddriHKDpVuIKwOcwL8oZ8=";
};
nativeBuildInputs = [
cython
hatchling
hatch-vcs
];
propagatedBuildInputs = [
future
];
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 ];
};
}