mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
9b79a05ae1
Conflicts: - pkgs/development/python-modules/flexcache/default.nix - pkgs/development/python-modules/flexparser/default.nix - pkgs/development/python-modules/odp-amsterdam/default.nix - pkgs/development/python-modules/pint/default.nix - pkgs/development/python-modules/uncertainties/default.nix - pkgs/top-level/python-packages.nix
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
setuptools-scm,
|
|
wheel,
|
|
|
|
# dependencies
|
|
typing-extensions,
|
|
|
|
# checks
|
|
pytestCheckHook,
|
|
pytest-mpl,
|
|
pytest-subtests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flexparser";
|
|
version = "0.3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hgrecco";
|
|
repo = "flexparser";
|
|
rev = version;
|
|
hash = "sha256-9ImG8uh1SZ+pAbqzWBkTVn+3EBAGzzdP8vqqP59IgIw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
wheel
|
|
];
|
|
|
|
propagatedBuildInputs = [ typing-extensions ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-mpl
|
|
pytest-subtests
|
|
];
|
|
|
|
pythonImportsCheck = [ "flexparser" ];
|
|
|
|
meta = with lib; {
|
|
description = "Parsing made fun ... using typing";
|
|
homepage = "https://github.com/hgrecco/flexparser";
|
|
changelog = "https://github.com/hgrecco/flexparser/blob/${src.rev}/CHANGES";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
};
|
|
}
|