git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.piccata: enable tests
commitaa37d8940547dd706734431d7ae0da128b9de6a7 authorFabian Affolter <mail@fabian-affolter.ch> dateSat 23 Oct 2021, 13:47 (5 years ago) parent1cab3e2
1 file changed+20−6
pkgs/development/python-modules/piccata/default.nix+20−6
pkgs/development/python-modules/piccata/default.nix+20−6
@@ -1,8 +1,14 @@
1−{ buildPythonPackage, isPy27, fetchFromGitHub, lib, ipaddress }:
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, isPy27
5+, pytestCheckHook
6+}:
27
38buildPythonPackage rec {
49 pname = "piccata";
510 version = "2.0.0";
11+
612 disabled = isPy27;
713
814 src = fetchFromGitHub {
@@ -12,15 +18,23 @@ buildPythonPackage rec {
1218 sha256 = "0pn842jcf2czjks5dphivgp1s7wiifqiv93s0a89h0wxafd6pbsr";
1319 };
1420
15− propagatedBuildInputs = [
16− ipaddress
21+ checkInputs = [
22+ pytestCheckHook
23+ ];
24+
25+ disabledTests = [
26+ # No communication possible in the sandbox
27+ "test_client_server_communication"
1728 ];
1829
19− pythonImportsCheck = [ "piccata" ];
30+ pythonImportsCheck = [
31+ "piccata"
32+ ];
2033
21− meta = {
34+ meta = with lib; {
2235 description = "Simple CoAP (RFC7252) toolkit";
2336 homepage = "https://github.com/NordicSemiconductor/piccata";
24− maintainers = with lib.maintainers; [ gebner ];
37+ license = licenses.mit;
38+ maintainers = with maintainers; [ gebner ];
2539 };
2640}