diff --git a/pkgs/development/python-modules/cexprtk/default.nix b/pkgs/development/python-modules/cexprtk/default.nix new file mode 100644 index 000000000000..e75efe1c6397 --- /dev/null +++ b/pkgs/development/python-modules/cexprtk/default.nix @@ -0,0 +1,26 @@ +{ lib +, fetchPypi +, buildPythonPackage +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "cexprtk"; + version = "0.4.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-c7QXB+oXzkRveiPpNrW/HY8pMtpZx/RtDpJMVE7fY/A="; + }; + + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "cexprtk" ]; + + meta = with lib; { + description = "Mathematical expression parser, cython wrapper"; + homepage = "https://github.com/mjdrushton/cexprtk"; + license = licenses.cpl10; + maintainers = with maintainers; [ onny ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5c286acfdc9c..191e0011c25e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1600,6 +1600,8 @@ in { censys = callPackage ../development/python-modules/censys { }; + cexprtk = callPackage ../development/python-modules/cexprtk { }; + coincurve = callPackage ../development/python-modules/coincurve { inherit (pkgs) secp256k1; };