Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 26 lines 609 B view raw
1{ buildPythonPackage, fetchPypi, lib, numpy, pytest_4 }: 2 3buildPythonPackage rec { 4 version = "3.0.1"; 5 pname = "opt_einsum"; 6 7 src = fetchPypi { 8 inherit version pname; 9 sha256 = "1agyvq26x0zd6j3wzgczl4apx8v7cb9w1z50azn8c3pq9jphgfla"; 10 }; 11 12 propagatedBuildInputs = [ numpy ]; 13 14 checkInputs = [ pytest_4 ]; 15 16 checkPhase = '' 17 pytest 18 ''; 19 20 meta = with lib; { 21 description = "Optimizing NumPy's einsum function with order optimization and GPU support."; 22 homepage = http://optimized-einsum.readthedocs.io; 23 license = licenses.mit; 24 maintainers = with maintainers; [ teh ]; 25 }; 26}