nixpkgs/pkgs/development/python-modules/parso/default.nix

37 lines
983 B
Nix
Raw Normal View History

2017-10-25 19:04:35 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, pythonOlder
, pytestCheckHook
2017-10-25 19:04:35 +01:00
}:
buildPythonPackage rec {
pname = "parso";
2021-02-20 09:09:12 +00:00
version = "0.8.1";
disabled = pythonOlder "3.6";
2017-10-25 19:04:35 +01:00
src = fetchPypi {
inherit pname version;
2021-02-20 09:09:12 +00:00
sha256 = "8519430ad07087d4c997fda3a7918f7cfa27cb58972a8c89c2a0295a1c940e9e";
2017-10-25 19:04:35 +01:00
};
patches = [
# Fix the flaky test due to slow moving time on Apple Silicon chips.
# Remove when https://github.com/davidhalter/parso/pull/177 is in the next release.
(fetchpatch {
url = "https://github.com/davidhalter/parso/pull/177/commits/2799a7a3c2cf87fdc2d0c19a0890acea425091ce.patch";
sha256 = "sha256-A5EQly1wR/7lo+L8Pp0UPSUIhC0WcblXEWQNvRMlZYA=";
})
];
checkInputs = [ pytestCheckHook ];
2017-10-25 19:04:35 +01:00
meta = with lib; {
2017-10-25 19:04:35 +01:00
description = "A Python Parser";
homepage = "https://parso.readthedocs.io/en/latest/";
changelog = "https://github.com/davidhalter/parso/blob/master/CHANGELOG.rst";
license = licenses.mit;
2017-10-25 19:04:35 +01:00
};
2018-05-24 11:19:19 +01:00
}