2022-04-15 01:41:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchPypi
|
|
|
|
# build inputs
|
|
|
|
, aiofiles
|
|
|
|
, aiohttp
|
|
|
|
, attrs
|
|
|
|
, certifi
|
|
|
|
, cssselect
|
|
|
|
, html5lib
|
|
|
|
, isodate
|
|
|
|
, json-home-client
|
|
|
|
, lxml
|
|
|
|
, pillow
|
|
|
|
, pygments
|
|
|
|
, requests
|
|
|
|
, result
|
|
|
|
, setuptools
|
|
|
|
, tenacity
|
|
|
|
, widlparser
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "bikeshed";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "3.7.0";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-3fVo+B71SsJs+XF4+FWH2nz0ouTnpC/02fXYr1C9Jrk=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Relax requirements from "==" to ">="
|
|
|
|
# https://github.com/tabatkins/bikeshed/issues/2178
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace "==" ">="
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiofiles
|
|
|
|
aiohttp
|
|
|
|
attrs
|
|
|
|
certifi
|
|
|
|
cssselect
|
|
|
|
html5lib
|
|
|
|
isodate
|
|
|
|
json-home-client
|
|
|
|
lxml
|
|
|
|
pillow
|
|
|
|
pygments
|
|
|
|
requests
|
|
|
|
result
|
|
|
|
setuptools
|
|
|
|
tenacity
|
|
|
|
widlparser
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/bikeshed test
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "bikeshed" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Preprocessor for anyone writing specifications that converts source files into actual specs";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bikeshed";
|
2022-04-15 01:41:22 +00:00
|
|
|
longDescription = ''
|
|
|
|
Bikeshed is a pre-processor for spec documents, turning a source document
|
|
|
|
(containing only the actual spec content, plus several shorthands for linking
|
|
|
|
to terms and other things) into a final spec document, with appropriate boilerplate,
|
|
|
|
bibliography, indexes, etc all filled in. It's used on specs for CSS
|
|
|
|
and many other W3C working groups, WHATWG, the C++ standards committee, and elsewhere!
|
|
|
|
'';
|
|
|
|
homepage = "https://tabatkins.github.io/bikeshed/";
|
|
|
|
license = licenses.cc0;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = [];
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
}
|