nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 935 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchPypi, 6 numpy, 7 pytestCheckHook, 8 python-utils, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "lap"; 14 version = "0.5.12"; 15 pyproject = true; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-VwtBTqeubAS9SdDsjNrB3FY0c3dVeE1E43+fZourRP0="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 nativeBuildInputs = [ cython ]; 25 26 dependencies = [ 27 numpy 28 python-utils 29 ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "lap" ]; 34 # See https://github.com/NixOS/nixpkgs/issues/255262 35 preCheck = '' 36 cd "$out" 37 ''; 38 39 meta = { 40 description = "Linear Assignment Problem solver (LAPJV/LAPMOD)"; 41 homepage = "https://github.com/gatagat/lap"; 42 changelog = "https://github.com/gatagat/lap/releases/tag/v${version}"; 43 license = lib.licenses.bsd2; 44 maintainers = with lib.maintainers; [ 45 doronbehar 46 tebriel 47 ]; 48 }; 49}