Something went wrong. Try again.
lol
Something went wrong. Try again.
984 B · 44 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonAtLeast, setuptools, six,}:
buildPythonPackage rec { pname = "google-pasta"; version = "0.2.0"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-yfLI38j5bQ1YCCmZIHIb4wye7DfyOJ8okE9FRWXIoW4="; };
# Hasn't had a release in six years. Effectively unmaintained. disabled = pythonAtLeast "3.14";
postPatch = '' substituteInPlace pasta/augment/inline_test.py \ --replace-fail assertRaisesRegexp assertRaisesRegex '';
build-system = [ setuptools ];
dependencies = [ six ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pasta" ];
meta = { description = "AST-based Python refactoring library"; homepage = "https://github.com/google/pasta"; changelog = "https://github.com/google/pasta/releases/tag/v${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ timokau ]; };}