1{ lib
2, buildPythonPackage
3, fetchPypi
4, cython
5, numpy
6, python
7, isPy3k
8}:
9
10buildPythonPackage rec {
11 version = "2.0.2";
12 pname = "fdint";
13 disabled = isPy3k;
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "30db139684d362652670e2cd3206b5dd7b3b93b86c3aff37f4b4fd4a3f98aead";
18 };
19
20 buildInputs = [ cython ];
21 propagatedBuildInputs = [ numpy ];
22
23 # tests not included with pypi release
24 doCheck = false;
25
26 checkPhase = ''
27 ${python.interpreter} -m fdint.tests
28 '';
29
30 meta = with lib; {
31 homepage = "https://github.com/scott-maddox/fdint";
32 description = "A free, open-source python package for quickly and precisely approximating Fermi-Dirac integrals";
33 license = licenses.mit;
34 maintainers = [ maintainers.costrouc ];
35 };
36}