Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 42 lines 950 B view raw
1{ 2 lib, 3 python, 4 buildPythonPackage, 5 fetchFromGitHub, 6 setuptools, 7 cython, 8}: 9 10buildPythonPackage rec { 11 pname = "knot-floer-homology"; 12 version = "1.2.2"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "3-manifolds"; 17 repo = "knot_floer_homology"; 18 tag = "${version}_as_released"; 19 hash = "sha256-Gw9k9AaUVTBzE+ERUH8VgS//aVT03DdKozpL8xLG4No="; 20 }; 21 22 build-system = [ 23 setuptools 24 cython 25 ]; 26 27 pythonImportsCheck = [ "knot_floer_homology" ]; 28 29 checkPhase = '' 30 runHook preCheck 31 ${python.interpreter} -m knot_floer_homology.test 32 runHook postCheck 33 ''; 34 35 meta = { 36 description = "Python wrapper for Zoltán Szabó's HFK Calculator"; 37 changelog = "https://github.com/3-manifolds/knot_floer_homology/releases/tag/${src.tag}"; 38 homepage = "https://github.com/3-manifolds/knot_floer_homology"; 39 license = lib.licenses.gpl2Plus; 40 maintainers = with lib.maintainers; [ noiioiu ]; 41 }; 42}