Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi, isPy3k 2, pyserial }: 3 4buildPythonPackage rec { 5 pname = "pyserial-asyncio"; 6 version = "0.4"; 7 8 disabled = !isPy3k; # Doesn't support python older than 3.4 9 10 buildInputs = [ pyserial ]; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "1vlsb0d03krxlj7vpvyhpinnyxyy8s3lk5rs8ba2932dhyl7f1n4"; 15 }; 16 17 meta = with stdenv.lib; { 18 description = "asyncio extension package for pyserial"; 19 homepage = "https://github.com/pyserial/pyserial-asyncio"; 20 license = licenses.bsd3; 21 maintainers = with maintainers; [ etu ]; 22 platforms = platforms.linux; 23 }; 24}