nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytoolconfig,
6 pytest-timeout,
7 pytestCheckHook,
8 pythonAtLeast,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "rope";
14 version = "1.14.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "python-rope";
19 repo = "rope";
20 tag = version;
21 hash = "sha256-LcxpJhMtyk0kT759ape9zQzdwmL1321Spdbg9zuuXtI=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ pytoolconfig ] ++ pytoolconfig.optional-dependencies.global;
27
28 __darwinAllowLocalNetworking = true;
29
30 nativeCheckInputs = [
31 pytest-timeout
32 pytestCheckHook
33 ];
34
35 disabledTests = [
36 "test_search_submodule"
37 "test_get_package_source_pytest"
38 "test_get_modname_folder"
39 ]
40 ++ lib.optionals (pythonAtLeast "3.13") [
41 # https://github.com/python-rope/rope/issues/801
42 "test_skipping_directories_not_accessible_because_of_permission_error"
43 "test_hint_parametrized_iterable"
44 "test_hint_parametrized_iterator"
45 ];
46
47 meta = {
48 description = "Python refactoring library";
49 homepage = "https://github.com/python-rope/rope";
50 changelog = "https://github.com/python-rope/rope/blob/${src.tag}/CHANGELOG.md";
51 license = lib.licenses.gpl3Plus;
52 maintainers = [ ];
53 };
54}