nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 versioningit,
7 wheel,
8 numpy,
9 matplotlib,
10 schema,
11 hypothesis,
12 pytestCheckHook,
13}:
14
15buildPythonPackage rec {
16 pname = "broadbean";
17 version = "0.14.0";
18 pyproject = true;
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-v+Ov6mlSnaJG98ooA9AhPGJflrFafKQoO5wi+PxcZVw=";
23 };
24
25 nativeBuildInputs = [
26 setuptools
27 versioningit
28 wheel
29 ];
30
31 propagatedBuildInputs = [
32 numpy
33 matplotlib
34 schema
35 ];
36
37 nativeCheckInputs = [
38 hypothesis
39 pytestCheckHook
40 ];
41
42 disabledTests = [
43 # on a 200ms deadline
44 "test_points"
45 ];
46
47 pythonImportsCheck = [ "broadbean" ];
48
49 meta = {
50 homepage = "https://qcodes.github.io/broadbean";
51 description = "Library for making pulses that can be leveraged with QCoDeS";
52 license = lib.licenses.mit;
53 maintainers = with lib.maintainers; [ evilmav ];
54 };
55}