depot/third_party/nixpkgs/pkgs/development/python-modules/rope/default.nix

56 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-timeout
, pytestCheckHook
, pythonOlder
, setuptools
, pytoolconfig
}:
buildPythonPackage rec {
pname = "rope";
version = "1.6.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-rope";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-avNCti288dY9pl5AVTmUzZU/vb6WDkXEtELNlEi6L/o=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
pytoolconfig
]++ pytoolconfig.optional-dependencies.global;
checkInputs = [
pytest-timeout
pytestCheckHook
];
pythonImportsCheck = [
"rope"
];
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 ];
};
}