1{ lib
2, buildPythonPackage
3, fetchPypi
4, matchpy
5, numpy
6, astunparse
7, typing-extensions
8, black
9, pytest
10, pytestcov
11, numba
12, nbval
13, python
14, isPy37
15}:
16
17buildPythonPackage rec {
18 pname = "uarray";
19 version = "0.4";
20 format = "flit";
21 # will have support soon see
22 # https://github.com/Quansight-Labs/uarray/pull/64
23 disabled = isPy37;
24
25 src = fetchPypi {
26 inherit pname version;
27 sha256 = "4ec88f477d803a914d58fdf83aeedfb1986305355775cf55525348c62cce9aa4";
28 };
29
30 checkInputs = [ pytest nbval pytestcov numba ];
31 propagatedBuildInputs = [ matchpy numpy astunparse typing-extensions black ];
32
33 checkPhase = ''
34 ${python.interpreter} extract_readme_tests.py
35 pytest
36 '';
37
38 meta = with lib; {
39 description = "Universal array library";
40 homepage = https://github.com/Quansight-Labs/uarray;
41 license = licenses.bsd0;
42 maintainers = [ maintainers.costrouc ];
43 };
44}