nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, cmake
5, numba
6, numpy
7, pytestCheckHook
8, pyyaml
9, rapidjson
10}:
11
12buildPythonPackage rec {
13 pname = "awkward";
14 version = "1.8.0";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-ZlX6ItGx0dy5zO4NUCNQq5DFNGehC1QLdiRCK1lNLnI=";
19 };
20
21 nativeBuildInputs = [ cmake ];
22 buildInputs = [ pyyaml rapidjson ];
23 propagatedBuildInputs = [ numpy ];
24
25 dontUseCmakeConfigure = true;
26
27 checkInputs = [ pytestCheckHook numba ];
28 dontUseSetuptoolsCheck = true;
29 disabledTestPaths = [ "tests-cuda" ];
30
31 meta = with lib; {
32 description = "Manipulate JSON-like data with NumPy-like idioms";
33 homepage = "https://github.com/scikit-hep/awkward";
34 license = licenses.bsd3;
35 maintainers = with maintainers; [ veprbl ];
36 };
37}