diff options
author | Fernando J Pando <fernando.pando@stelligent.com> | 2017-02-06 15:27:24 -0500 |
---|---|---|
committer | Fernando J Pando <fernando.pando@stelligent.com> | 2017-02-09 10:10:51 -0500 |
commit | 6fc34fd48a01840fb6b11f6927145509736ec716 (patch) | |
tree | 4836b36f367b9e6a82cb75c9c087e44402839b39 /pkgs/development/python-modules/treq | |
parent | 487229654ed2dde979ffdd8c19580d47c425a1a3 (diff) | |
download | nixpkgs-6fc34fd48a01840fb6b11f6927145509736ec716.tar nixpkgs-6fc34fd48a01840fb6b11f6927145509736ec716.tar.gz nixpkgs-6fc34fd48a01840fb6b11f6927145509736ec716.tar.bz2 nixpkgs-6fc34fd48a01840fb6b11f6927145509736ec716.tar.lz nixpkgs-6fc34fd48a01840fb6b11f6927145509736ec716.tar.xz nixpkgs-6fc34fd48a01840fb6b11f6927145509736ec716.tar.zst nixpkgs-6fc34fd48a01840fb6b11f6927145509736ec716.zip |
treq: init 16.12.1
Tested on NixOS unstable
Diffstat (limited to 'pkgs/development/python-modules/treq')
-rw-r--r-- | pkgs/development/python-modules/treq/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/treq/default.nix b/pkgs/development/python-modules/treq/default.nix new file mode 100644 index 00000000000..37f9e3324c7 --- /dev/null +++ b/pkgs/development/python-modules/treq/default.nix @@ -0,0 +1,51 @@ +{ stdenv, fetchurl, buildPythonPackage, service-identity, requests2, + six, mock, twisted, incremental, coreutils, gnumake, pep8, sphinx, + openssl, pyopenssl }: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "treq"; + version = "16.12.0"; + + src = fetchurl { + url = "mirror://pypi/t/${pname}/${name}.tar.gz"; + sha256 = "1aci3f3rmb5mdf4s6s4k4kghmnyy784cxgi3pz99m5jp274fs25h"; + }; + + buildInputs = [ + pep8 + mock + ]; + + propagatedBuildInputs = [ + service-identity + requests2 + twisted + incremental + sphinx + six + openssl + pyopenssl + ]; + + checkPhase = '' + ${pep8}/bin/pep8 --ignore=E902 treq + trial treq + ''; + + doCheck = false; + # Failure: twisted.web._newclient.RequestTransmissionFailed: [<twisted.python.failure.Failure OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')]>] + + postBuild = '' + ${coreutils}/bin/mkdir -pv treq + ${coreutils}/bin/echo "${version}" | ${coreutils}/bin/tee treq/_version + cd docs && ${gnumake}/bin/make html && cd .. + ''; + + meta = with stdenv.lib; { + homepage = http://github.com/twisted/treq; + description = "A requests-like API built on top of twisted.web's Agent"; + license = licenses.mit; + maintainers = with maintainers; [ nand0p ]; + }; +} |