depot/third_party/nixpkgs/pkgs/development/python-modules/in-n-out/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

60 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;
sha256 = "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 ];
};
}