Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytoolconfig 5, pytest-timeout 6, pytestCheckHook 7, pythonOlder 8, setuptools 9}: 10 11buildPythonPackage rec { 12 pname = "rope"; 13 version = "1.6.0"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "python-rope"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-avNCti288dY9pl5AVTmUzZU/vb6WDkXEtELNlEi6L/o="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 ]; 28 29 propagatedBuildInputs = [ 30 pytoolconfig 31 ] ++ pytoolconfig.optional-dependencies.global; 32 33 nativeCheckInputs = [ 34 pytest-timeout 35 pytestCheckHook 36 ]; 37 38 disabledTests = [ 39 "test_search_submodule" 40 "test_get_package_source_pytest" 41 "test_get_modname_folder" 42 ]; 43 44 meta = with lib; { 45 description = "Python refactoring library"; 46 homepage = "https://github.com/python-rope/rope"; 47 changelog = "https://github.com/python-rope/rope/blob/${version}/CHANGELOG.md"; 48 license = licenses.gpl3Plus; 49 maintainers = with maintainers; [ goibhniu ]; 50 }; 51}