nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 44 lines 984 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonAtLeast, 7 setuptools, 8 six, 9}: 10 11buildPythonPackage rec { 12 pname = "google-pasta"; 13 version = "0.2.0"; 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-yfLI38j5bQ1YCCmZIHIb4wye7DfyOJ8okE9FRWXIoW4="; 19 }; 20 21 # Hasn't had a release in six years. Effectively unmaintained. 22 disabled = pythonAtLeast "3.14"; 23 24 postPatch = '' 25 substituteInPlace pasta/augment/inline_test.py \ 26 --replace-fail assertRaisesRegexp assertRaisesRegex 27 ''; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ six ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "pasta" ]; 36 37 meta = { 38 description = "AST-based Python refactoring library"; 39 homepage = "https://github.com/google/pasta"; 40 changelog = "https://github.com/google/pasta/releases/tag/v${version}"; 41 license = lib.licenses.asl20; 42 maintainers = with lib.maintainers; [ timokau ]; 43 }; 44}