2024-07-01 15:47:52 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
2024-07-01 15:47:52 +00:00
|
|
|
setuptools-scm,
|
2024-07-27 06:49:29 +00:00
|
|
|
wheel,
|
|
|
|
|
|
|
|
# dependencies
|
2024-07-01 15:47:52 +00:00
|
|
|
typing-extensions,
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
# checks
|
2024-07-01 15:47:52 +00:00
|
|
|
pytestCheckHook,
|
2024-07-27 06:49:29 +00:00
|
|
|
pytest-mpl,
|
|
|
|
pytest-subtests,
|
2024-07-01 15:47:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flexparser";
|
|
|
|
version = "0.3.1";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hgrecco";
|
|
|
|
repo = "flexparser";
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = version;
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-9ImG8uh1SZ+pAbqzWBkTVn+3EBAGzzdP8vqqP59IgIw=";
|
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
wheel
|
|
|
|
];
|
2024-07-01 15:47:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
propagatedBuildInputs = [ typing-extensions ];
|
2024-07-01 15:47:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mpl
|
|
|
|
pytest-subtests
|
|
|
|
];
|
2024-07-01 15:47:52 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "flexparser" ];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = with lib; {
|
2024-07-01 15:47:52 +00:00
|
|
|
description = "Parsing made fun ... using typing";
|
|
|
|
homepage = "https://github.com/hgrecco/flexparser";
|
|
|
|
changelog = "https://github.com/hgrecco/flexparser/blob/${src.rev}/CHANGES";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
2024-07-01 15:47:52 +00:00
|
|
|
};
|
|
|
|
}
|