Merge pull request #171880 from SuperSandro2000/treq

python310Packages.treq: adopt, enable tests, cleanup dependencies

authored by Sandro and committed by GitHub a2543aa2 8b61d66c

+11 -27
+11 -27
pkgs/development/python-modules/treq/default.nix
··· 1 - { lib, fetchPypi, buildPythonPackage, service-identity, requests, six 2 - , mock, twisted, incremental, pep8, httpbin 1 + { lib 2 + , fetchPypi 3 + , buildPythonPackage 4 + , requests 5 + , twisted 6 + , incremental 7 + , httpbin 3 8 }: 4 9 5 10 buildPythonPackage rec { ··· 13 18 14 19 propagatedBuildInputs = [ 15 20 requests 16 - six 17 21 incremental 18 - service-identity 19 22 twisted 20 - ] 21 - # twisted [tls] requirements (we should find a way to list "extras") 22 - ++ twisted.extras.tls; 23 + ] ++ twisted.extras.tls; 23 24 24 25 checkInputs = [ 25 - pep8 26 - mock 27 26 httpbin 27 + twisted 28 28 ]; 29 29 30 - postPatch = '' 31 - rm -fv src/treq/test/test_treq_integration.py 32 - ''; 33 - 34 - # XXX tox tries to install coverage despite it is installed 35 - #postBuild = '' 36 - # # build documentation and install in $out 37 - # tox -e docs 38 - # mkdir -pv $out/docs 39 - # cp -rv docs/* $out/docs/ 40 - #''; 41 - 42 30 checkPhase = '' 43 - pep8 --ignore=E902 treq 44 31 trial treq 45 32 ''; 46 - 47 - # Failing tests https://github.com/twisted/treq/issues/208 48 - doCheck = false; 49 33 50 34 meta = with lib; { 51 35 homepage = "https://github.com/twisted/treq"; 52 - description = "A requests-like API built on top of twisted.web's Agent"; 36 + description = "Requests-like API built on top of twisted.web's Agent"; 53 37 license = licenses.mit; 54 - maintainers = with maintainers; [ ]; 38 + maintainers = with maintainers; [ SuperSandro2000 ]; 55 39 }; 56 40 }