nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 948 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 setuptools-scm, 9 10 # dependencies 11 typing-extensions, 12 13 # checks 14 pytestCheckHook, 15 pytest-mpl, 16}: 17 18buildPythonPackage rec { 19 pname = "flexparser"; 20 version = "0.4"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "hgrecco"; 25 repo = "flexparser"; 26 rev = version; 27 hash = "sha256-0Ocp4GsrnzkpSqnP+AK5OxJ3KyUf5Uc6CegDXpRYRqo="; 28 }; 29 30 build-system = [ 31 setuptools 32 setuptools-scm 33 ]; 34 35 dependencies = [ typing-extensions ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 pytest-mpl 40 ]; 41 42 pythonImportsCheck = [ "flexparser" ]; 43 44 meta = { 45 description = "Parsing made fun ... using typing"; 46 homepage = "https://github.com/hgrecco/flexparser"; 47 changelog = "https://github.com/hgrecco/flexparser/blob/${src.rev}/CHANGES"; 48 license = lib.licenses.bsd3; 49 maintainers = with lib.maintainers; [ doronbehar ]; 50 }; 51}