2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools-scm,
|
|
|
|
pythonOlder,
|
2021-10-11 16:52:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pygmars";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.8.1";
|
|
|
|
pyproject = true;
|
2021-10-11 16:52:03 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nexB";
|
2024-09-19 14:19:46 +00:00
|
|
|
repo = "pygmars";
|
2022-11-27 09:42:12 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-RwAZ1ZLh0zgGshSv7LleBHMotKapDFtD69ptqQnr0EA=";
|
2021-10-11 16:52:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2021-10-11 16:52:03 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-10-11 16:52:03 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pygmars" ];
|
2021-10-11 16:52:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python lexing and parsing library";
|
|
|
|
homepage = "https://github.com/nexB/pygmars";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/nexB/pygmars/releases/tag/v${version}";
|
2021-10-11 16:52:03 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|