nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 cython,
5 fetchPypi,
6 numpy,
7 pytest-cov-stub,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "cftime";
13 version = "1.6.5";
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-giX+1rm0P7h2g+urUhMEUPwXMAERUNMJIJapDlTR6B4=";
19 };
20
21 nativeBuildInputs = [
22 cython
23 numpy
24 ];
25
26 propagatedBuildInputs = [ numpy ];
27
28 nativeCheckInputs = [
29 pytest-cov-stub
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [ "cftime" ];
34
35 meta = {
36 description = "Time-handling functionality from netcdf4-python";
37 homepage = "https://github.com/Unidata/cftime";
38 license = lib.licenses.mit;
39 maintainers = [ ];
40 };
41}