mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-20 15:00:35 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
37 lines
663 B
Nix
37 lines
663 B
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
buildPythonPackage,
|
|
cython,
|
|
pkg-config,
|
|
lrcalc,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lrcalc-python";
|
|
version = "2.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "lrcalc";
|
|
sha256 = "e3a0509aeda487b412b391a52e817ca36b5c063a8305e09fd54d53259dd6aaa9";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [ lrcalc ];
|
|
|
|
pythonImportsCheck = [ "lrcalc" ];
|
|
|
|
meta = {
|
|
description = "Littlewood-Richardson Calculator bindings";
|
|
homepage = "https://sites.math.rutgers.edu/~asbuch/lrcalc/";
|
|
teams = [ lib.teams.sage ];
|
|
license = lib.licenses.gpl3;
|
|
};
|
|
}
|