depot/third_party/nixpkgs/pkgs/development/python-modules/wptserve/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

31 lines
625 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, six, h2
, isPy3k
}:
buildPythonPackage rec {
pname = "wptserve";
version = "3.0";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "11990a92b07e4535c2723c34a88bd905c66acec9cda6efa7a7b61371bfe8d87a";
};
postPatch = ''
substituteInPlace setup.py --replace "h2==" "h2>="
'';
propagatedBuildInputs = [ six h2 ];
meta = {
description = "A webserver intended for web browser testing";
homepage = "https://wptserve.readthedocs.org/";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ raskin ];
};
}