nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 19.03 29 lines 776 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy3k 2, pytestrunner, pytest, mock }: 3 4buildPythonPackage rec { 5 pname = "paho-mqtt"; 6 version = "1.4.0"; 7 8 # No tests in PyPI tarball 9 src = fetchFromGitHub { 10 owner = "eclipse"; 11 repo = "paho.mqtt.python"; 12 rev = "v${version}"; 13 sha256 = "1xg9ppz2lqacd9prsrx93q2wfkjjyla03xlfw74aj1alz9ki5hrs"; 14 }; 15 16 postPatch = '' 17 substituteInPlace setup.py --replace "pylama" "" 18 substituteInPlace setup.cfg --replace "--pylama" "" 19 ''; 20 21 checkInputs = [ pytestrunner pytest ] ++ lib.optional (!isPy3k) mock; 22 23 meta = with lib; { 24 homepage = https://eclipse.org/paho; 25 description = "MQTT version 3.1.1 client class"; 26 license = licenses.epl10; 27 maintainers = with maintainers; [ mog dotlambda ]; 28 }; 29}