forked from mirrors/nixpkgs
python310Packages.python-box: update disabled
- use optional-dependencies
This commit is contained in:
parent
04c151b9e3
commit
b893054798
|
@ -7,32 +7,55 @@
|
|||
, pyyaml
|
||||
, ruamel-yaml
|
||||
, toml
|
||||
, tomli
|
||||
, tomli-w
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-box";
|
||||
version = "6.10.0";
|
||||
version = "6.0.2";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cdgriffith";
|
||||
repo = "Box";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-42VDZ4aASFFWhRY3ApBQ4dq76eD1flZtxUM9hpA9iiI=";
|
||||
rev = version;
|
||||
hash = "sha256-IE2qyRzvrOTymwga+hCwE785sAVTqQtcN1DL/uADpbQ=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
msgpack
|
||||
pyyaml
|
||||
ruamel-yaml
|
||||
toml
|
||||
];
|
||||
passthru.optional-dependencies = {
|
||||
all = [
|
||||
msgpack
|
||||
ruamel-yaml
|
||||
toml
|
||||
];
|
||||
yaml = [
|
||||
ruamel-yaml
|
||||
];
|
||||
ruamel-yaml = [
|
||||
ruamel-yaml
|
||||
];
|
||||
PyYAML = [
|
||||
pyyaml
|
||||
];
|
||||
tomli = [
|
||||
tomli-w
|
||||
] ++ lib.optionals (pythonOlder "3.11") [
|
||||
tomli
|
||||
];
|
||||
toml = [
|
||||
toml
|
||||
];
|
||||
msgpack = [
|
||||
msgpack
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
] ++ passthru.optional-dependencies.all;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"box"
|
||||
|
|
Loading…
Reference in a new issue