Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / blocksat-cli / default.nix
blobac53b567e5a99b782a8e8b4373f2f2ace2bda921
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , distro
5 , pysnmp
6 , python-gnupg
7 , qrcode
8 , requests
9 , sseclient-py
10 , zfec
11 , pytestCheckHook
12 , pythonOlder
15 buildPythonPackage rec {
16   pname = "blocksat-cli";
17   version = "0.4.6";
18   format = "setuptools";
20   disabled = pythonOlder "3.7";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-uANAMNoAC4HUoUuR5ldxoiy+LLzZVpKosU5JttXLnqg=";
25   };
27   propagatedBuildInputs = [
28     distro
29     pysnmp
30     python-gnupg
31     qrcode
32     requests
33     sseclient-py
34     zfec
35   ];
37   nativeCheckInputs = [
38     pytestCheckHook
39   ];
41   disabledTestPaths = [
42     # disable tests which require being connected to the satellite
43     "blocksatcli/test_satip.py"
44     "blocksatcli/api/test_listen.py"
45     "blocksatcli/api/test_msg.py"
46     "blocksatcli/api/test_net.py"
47     # disable tests which require being online
48     "blocksatcli/api/test_order.py"
49   ];
51   disabledTests = [
52     "test_monitor_get_stats"
53     "test_monitor_update_with_reporting_enabled"
54     "test_erasure_recovery"
55   ];
57   pythonImportsCheck = [
58     "blocksatcli"
59   ];
61   meta = with lib; {
62     description = "Blockstream Satellite CLI";
63     homepage = "https://github.com/Blockstream/satellite";
64     license = licenses.gpl3Only;
65     maintainers = with maintainers; [ prusnak ];
66   };