2017-05-21 17:28:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-12-21 11:36:03 +00:00
|
|
|
, six, h2
|
2017-09-06 07:11:48 +00:00
|
|
|
, isPy3k
|
2017-05-21 17:28:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wptserve";
|
2018-11-04 10:35:21 +00:00
|
|
|
version = "2.0";
|
2017-05-21 17:28:30 +00:00
|
|
|
|
2017-09-06 07:11:48 +00:00
|
|
|
disabled = isPy3k;
|
|
|
|
|
2017-05-21 17:28:30 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:21 +00:00
|
|
|
sha256 = "9d0c6adc279748abea81ac12b7a2cac97ebbdd87826dc11f6dbd85b781e9442a";
|
2017-05-21 17:28:30 +00:00
|
|
|
};
|
|
|
|
|
2019-03-03 01:38:44 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "h2==" "h2>="
|
|
|
|
'';
|
|
|
|
|
2018-12-21 11:36:03 +00:00
|
|
|
propagatedBuildInputs = [ six h2 ];
|
2017-05-21 17:28:30 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A webserver intended for web browser testing";
|
2019-04-22 08:24:21 +00:00
|
|
|
homepage = https://wptserve.readthedocs.org/;
|
2017-05-21 17:28:30 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ raskin ];
|
|
|
|
};
|
|
|
|
}
|