Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5, pytestCheckHook 6, scipy 7, numpy 8}: 9 10buildPythonPackage rec { 11 pname = "rowan"; 12 version = "1.3.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "glotzerlab"; 17 repo = "rowan"; 18 rev = "v${version}"; 19 hash = "sha256-klIqyX04w1xYmYtAbLF5jwpcJ83oKOaENboxyCL70EY="; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools 24 ]; 25 nativeCheckInputs = [ 26 pytestCheckHook 27 scipy 28 ]; 29 30 propagatedBuildInputs = [ 31 numpy 32 ]; 33 34 pythonImportsCheck = [ "rowan" ]; 35 36 meta = with lib; { 37 description = "Python package for working with quaternions"; 38 homepage = "https://github.com/glotzerlab/rowan"; 39 changelog = "https://github.com/glotzerlab/rowan/blob/${src.rev}/ChangeLog.rst"; 40 license = licenses.bsd3; 41 maintainers = with maintainers; [ doronbehar ]; 42 }; 43}