mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
35 lines
793 B
Nix
35 lines
793 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonAtLeast,
|
|
pythonOlder,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "parso";
|
|
version = "0.8.4";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-6zp7WCQPuZCZo0VXHe7MD5VA6l9N0v4UwqmdaygauS0=";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.10") [
|
|
# python changed exception message format in 3.10, 3.10 not yet supported
|
|
"test_python_exception_matches"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python Parser";
|
|
homepage = "https://parso.readthedocs.io/en/latest/";
|
|
changelog = "https://github.com/davidhalter/parso/blob/master/CHANGELOG.rst";
|
|
license = licenses.mit;
|
|
};
|
|
}
|