1{ buildPythonPackage
2, fetchPypi
3, pytest
4, coveralls
5, pytestcov
6, cython
7, numpy
8}:
9
10buildPythonPackage rec {
11 pname = "cftime";
12 version = "1.2.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "ab5d5076f7d3e699758a244ada7c66da96bae36e22b9e351ce0ececc36f0a57f";
17 };
18
19 checkInputs = [ pytest coveralls pytestcov ];
20 buildInputs = [ cython ];
21 propagatedBuildInputs = [ numpy ];
22
23 checkPhase = ''
24 py.test
25 '';
26
27 meta = {
28 description = "Time-handling functionality from netcdf4-python";
29 };
30
31}