Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 771 B view raw
1{ lib, fetchFromGitHub, buildPythonPackage, pytest, numpy, scipy, matplotlib, docutils 2, pyopencl, opencl-headers 3}: 4 5buildPythonPackage rec { 6 pname = "sasmodels"; 7 version = "0.98"; 8 9 src = fetchFromGitHub { 10 owner = "SasView"; 11 repo = "sasmodels"; 12 rev = "v${version}"; 13 sha256 = "02y4lpjwaa73pr46ylk0pw0kbill4nfzqgnfv16v5m0z9smd76ir"; 14 }; 15 16 buildInputs = [ opencl-headers ]; 17 checkInputs = [ pytest ]; 18 propagatedBuildInputs = [ docutils matplotlib numpy scipy pyopencl ]; 19 20 checkPhase = '' 21 HOME=$(mktemp -d) py.test -c ./pytest.ini 22 ''; 23 24 meta = { 25 description = "Library of small angle scattering models"; 26 homepage = http://sasview.org; 27 license = lib.licenses.bsd3; 28 maintainers = with lib.maintainers; [ rprospero ]; 29 }; 30}