2021-05-28 09:39:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, commentjson
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "resolvelib";
|
2021-08-08 23:34:03 +00:00
|
|
|
# Currently this package is only used by Ansible and breaking changes
|
|
|
|
# are frequently introduced, so when upgrading ensure the new version
|
|
|
|
# is compatible with Ansible
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/128636
|
|
|
|
# https://github.com/ansible/ansible/blob/devel/requirements.txt
|
|
|
|
version = "0.5.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sarugaku";
|
|
|
|
repo = "resolvelib";
|
|
|
|
rev = version;
|
2021-08-08 23:34:03 +00:00
|
|
|
sha256 = "198vfv78hilpg0d0mjzchzp9zk6239wnra61vlsgwpcgz66d2bgv";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-28 09:39:13 +00:00
|
|
|
commentjson
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-03-15 16:39:30 +00:00
|
|
|
# TODO: reenable after updating to >= 1.0.0
|
|
|
|
# https://github.com/sarugaku/resolvelib/issues/114
|
|
|
|
disabledTests = [
|
|
|
|
"shared_parent_dependency"
|
|
|
|
"deep_complex_conflict"
|
|
|
|
"shared_parent_dependency_with_swapping"
|
|
|
|
"spapping_and_rewinding"
|
|
|
|
"pruned_unresolved_orphan"
|
|
|
|
"conflict_common_parent"
|
|
|
|
"same-package"
|
|
|
|
];
|
2021-05-28 09:39:13 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"resolvelib"
|
|
|
|
];
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Resolve abstract dependencies into concrete ones";
|
|
|
|
homepage = "https://github.com/sarugaku/resolvelib";
|
|
|
|
license = licenses.isc;
|
2024-01-13 08:15:51 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
}
|