python311Packages.pyformlang: refactor

This commit is contained in:
Fabian Affolter 2024-03-28 23:50:21 +01:00
parent 917ccf988f
commit 112fdbb2c1

View File

@ -1,12 +1,13 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, setuptools
, wheel
, networkx , networkx
, numpy , numpy
, pydot , pydot
, pytestCheckHook , pytestCheckHook
, pythonOlder
, setuptools
, wheel
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -14,17 +15,19 @@ buildPythonPackage rec {
version = "1.0.9"; version = "1.0.9";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-oCwYM4yQ1KYZpC7vVpeHSIDH2Q930JAuTDq9mds9zoc="; hash = "sha256-oCwYM4yQ1KYZpC7vVpeHSIDH2Q930JAuTDq9mds9zoc=";
}; };
nativeBuildInputs = [ build-system = [
setuptools setuptools
wheel wheel
]; ];
propagatedBuildInputs = [ dependencies = [
networkx networkx
numpy numpy
pydot pydot
@ -39,7 +42,7 @@ buildPythonPackage rec {
]; ];
meta = with lib; { meta = with lib; {
description = "A python framework for formal grammars"; description = "Framework for formal grammars";
homepage = "https://github.com/Aunsiels/pyformlang"; homepage = "https://github.com/Aunsiels/pyformlang";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ natsukium ]; maintainers = with maintainers; [ natsukium ];