depot/third_party/nixpkgs/pkgs/development/python-modules/rope/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

53 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytoolconfig
, pytest-timeout
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "rope";
version = "1.9.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-rope";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-j65C3x3anhH23D4kic5j++r/Ft0RqgZ/jFrNrNHVcXA=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
pytoolconfig
] ++ pytoolconfig.optional-dependencies.global;
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
pytest-timeout
pytestCheckHook
];
disabledTests = [
"test_search_submodule"
"test_get_package_source_pytest"
"test_get_modname_folder"
];
meta = with lib; {
description = "Python refactoring library";
homepage = "https://github.com/python-rope/rope";
changelog = "https://github.com/python-rope/rope/blob/${version}/CHANGELOG.md";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ goibhniu ];
};
}