nixpkgs/pkgs/development/python-modules/parsy/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

36 lines
715 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "parsy";
version = "1.4.0";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
repo = "parsy";
owner = "python-parsy";
rev = "v${version}";
hash = "sha256-FislrLb+u4T5m/eEER7kazZHJKEwPHe+Vg/YDJp4PyM=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"parsy"
];
meta = with lib; {
homepage = "https://github.com/python-parsy/parsy";
description = "Easy-to-use parser combinators, for parsing in pure Python";
license = [ licenses.mit ];
maintainers = with maintainers; [ milibopp ];
};
}