Files
nixpkgs/pkgs/development/python-modules/lrcalc-python/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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;
};
}