2017-05-21 18:28:30 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-12-21 11:36:03 +00:00
|
|
|
, six, h2
|
2017-09-06 08:11:48 +01:00
|
|
|
, isPy3k
|
2017-05-21 18:28:30 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wptserve";
|
2020-06-06 07:47:37 +01:00
|
|
|
version = "3.0";
|
2017-05-21 18:28:30 +01:00
|
|
|
|
2017-09-06 08:11:48 +01:00
|
|
|
disabled = isPy3k;
|
|
|
|
|
2017-05-21 18:28:30 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:37 +01:00
|
|
|
sha256 = "11990a92b07e4535c2723c34a88bd905c66acec9cda6efa7a7b61371bfe8d87a";
|
2017-05-21 18:28:30 +01: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 18:28:30 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A webserver intended for web browser testing";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wptserve.readthedocs.org/";
|
2017-05-21 18:28:30 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ raskin ];
|
|
|
|
};
|
|
|
|
}
|