From e531fc20cdbd15dfff7169bfa9392a53b0a8e385 Mon Sep 17 00:00:00 2001 From: Mauricio Collares Date: Tue, 3 May 2022 15:16:13 +0200 Subject: [PATCH] python3Packages.lrcalc-python: init at 2.1 --- .../python-modules/lrcalc-python/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/python-modules/lrcalc-python/default.nix diff --git a/pkgs/development/python-modules/lrcalc-python/default.nix b/pkgs/development/python-modules/lrcalc-python/default.nix new file mode 100644 index 000000000000..66c0ad46e5b7 --- /dev/null +++ b/pkgs/development/python-modules/lrcalc-python/default.nix @@ -0,0 +1,31 @@ +{ lib +, fetchPypi +, buildPythonPackage +, cython +, pkg-config +, lrcalc +}: + +buildPythonPackage rec { + pname = "lrcalc-python"; + version = "2.1"; + + src = fetchPypi { + inherit version; + pname = "lrcalc"; + sha256 = "e3a0509aeda487b412b391a52e817ca36b5c063a8305e09fd54d53259dd6aaa9"; + }; + + nativeBuildInputs = [ cython pkg-config ]; + + buildInputs = [ lrcalc ]; + + pythonImportsCheck = [ "lrcalc" ]; + + meta = with lib; { + description = "Littlewood-Richardson Calculator bindings"; + homepage = "https://sites.math.rutgers.edu/~asbuch/lrcalc/"; + maintainers = teams.sage.members; + license = licenses.gpl3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7fad7ce562e1..f7f0e853589f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4996,6 +4996,8 @@ in { losant-rest = callPackage ../development/python-modules/losant-rest { }; + lrcalc-python = callPackage ../development/python-modules/lrcalc-python { }; + lru-dict = callPackage ../development/python-modules/lru-dict { }; lsassy = callPackage ../development/python-modules/lsassy { };