nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 50 lines 1.0 kB view raw
1{ lib, buildPythonPackage, fetchFromGitHub, git, 2 attrs, future, peewee, h11, h2, atomicwrites, pycryptodome, sphinx, Logbook, jsonschema, 3 python-olm, unpaddedbase64, aiohttp, cachetools }: 4 5buildPythonPackage rec { 6 pname = "nio"; 7 version = "0.6"; 8 9 src = fetchFromGitHub { 10 owner = "poljar"; 11 repo = "matrix-nio"; 12 rev = version; 13 sha256 = "0pq5i6ks3pck2kq9m4p3pw9hbvkzs27xkyv68mjnfc6chp2g2mg9"; 14 }; 15 16 postPatch = '' 17 substituteInPlace setup.py \ 18 --replace 'python-olm>=3.1.0' "" 19 ''; 20 21 nativeBuildInputs = [ 22 git 23 ]; 24 25 propagatedBuildInputs = [ 26 attrs 27 future 28 peewee 29 h11 30 h2 31 atomicwrites 32 pycryptodome 33 sphinx 34 Logbook 35 jsonschema 36 python-olm 37 unpaddedbase64 38 aiohttp 39 cachetools 40 ]; 41 42 doCheck = false; 43 44 meta = with lib; { 45 description = "A Python Matrix client library, designed according to sans I/O principles"; 46 homepage = "https://github.com/poljar/matrix-nio"; 47 license = licenses.isc; 48 maintainers = [ maintainers.tilpner ]; 49 }; 50}