Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 45 lines 898 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, spglib 5, numpy 6, scipy 7, matplotlib 8, ase 9, netcdf4 10, pytest 11, pythonOlder 12, cython 13, cmake 14}: 15 16buildPythonPackage rec { 17 version = "19.11.1"; 18 pname = "BoltzTraP2"; 19 disabled = pythonOlder "3.5"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "3927ae782b7329dede2bf85ff5ff328c88f0514ecb592267e28912340f395d3e"; 24 }; 25 26 dontUseCmakeConfigure = true; 27 28 nativeBuildInputs = [ cmake cython ]; 29 checkInputs = [ pytest ]; 30 propagatedBuildInputs = [ spglib numpy scipy matplotlib ase netcdf4 ]; 31 32 # pypi release does no include files for tests 33 doCheck = false; 34 35 checkPhase = '' 36 py.test 37 ''; 38 39 meta = with stdenv.lib; { 40 homepage = "http://www.boltztrap.org/"; 41 description = "Band-structure interpolator and transport coefficient calculator"; 42 license = licenses.gpl3; 43 maintainers = [ maintainers.costrouc ]; 44 }; 45}