nixpkgs/pkgs/development/python-modules/resolvelib/default.nix
Vladimír Čunát 52f84b7e22
python3Packages.resolvelib: disable some tests
They were broken by .packaging update.
Upstream has fixed this, but that won't apply to this version
and we can't update .resolvelib without breaking ansible_2_12.
2023-03-11 16:17:07 +01:00

51 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, commentjson
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "resolvelib";
# 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";
src = fetchFromGitHub {
owner = "sarugaku";
repo = "resolvelib";
rev = version;
sha256 = "198vfv78hilpg0d0mjzchzp9zk6239wnra61vlsgwpcgz66d2bgv";
};
nativeCheckInputs = [
commentjson
pytestCheckHook
];
# 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"
];
pythonImportsCheck = [
"resolvelib"
];
meta = with lib; {
description = "Resolve abstract dependencies into concrete ones";
homepage = "https://github.com/sarugaku/resolvelib";
license = licenses.isc;
maintainers = with maintainers; [ hexa ];
};
}