61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cython_3
|
|
, fetchPypi
|
|
, future
|
|
, pytestCheckHook
|
|
, pythonAtLeast
|
|
, pythonOlder
|
|
, setuptools
|
|
, setuptools-scm
|
|
, toolz
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "in-n-out";
|
|
version = "0.1.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-PuzjidORMFVlmFZbmnu9O92FoiuXrC8NNRyjwdodriY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython_3
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
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://app-model.readthedocs.io/";
|
|
changelog = "https://github.com/pyapp-kit/in-n-out/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|