nixpkgs/pkgs/development/python-modules/flexparser/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
987 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
setuptools-scm,
# dependencies
typing-extensions,
# checks
pytestCheckHook,
pytest-mpl,
pytest-subtests,
}:
buildPythonPackage rec {
pname = "flexparser";
version = "0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "hgrecco";
repo = "flexparser";
rev = version;
hash = "sha256-0Ocp4GsrnzkpSqnP+AK5OxJ3KyUf5Uc6CegDXpRYRqo=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [ typing-extensions ];
nativeCheckInputs = [
pytestCheckHook
pytest-mpl
pytest-subtests
];
pythonImportsCheck = [ "flexparser" ];
meta = {
description = "Parsing made fun ... using typing";
homepage = "https://github.com/hgrecco/flexparser";
changelog = "https://github.com/hgrecco/flexparser/blob/${src.rev}/CHANGES";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ doronbehar ];
};
}