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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
857 B
Nix
Raw Permalink Normal View History

2021-10-09 10:45:11 +01:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools-scm,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pygmars";
version = "0.9.0";
2024-08-15 06:55:08 +01:00
pyproject = true;
2021-10-09 10:45:11 +01:00
disabled = pythonOlder "3.9";
2021-10-09 10:45:11 +01:00
src = fetchFromGitHub {
owner = "nexB";
2024-08-15 06:55:08 +01:00
repo = "pygmars";
rev = "refs/tags/v${version}";
hash = "sha256-OhmTD83p/4tCMoCXy35/0fy8Tw1usn27dJyzpOeGlkU=";
2021-10-09 10:45:11 +01:00
};
dontConfigure = true;
2024-08-15 06:55:08 +01:00
build-system = [ setuptools-scm ];
2021-10-09 10:45:11 +01:00
nativeCheckInputs = [ pytestCheckHook ];
2021-10-09 10:45:11 +01:00
pythonImportsCheck = [ "pygmars" ];
meta = with lib; {
description = "Python lexing and parsing library";
homepage = "https://github.com/nexB/pygmars";
changelog = "https://github.com/aboutcode-org/pygmars/blob/v${version}/CHANGELOG.rst";
2021-10-09 10:45:11 +01:00
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}