3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.widlparser: init at 1.0.12

This commit is contained in:
Dzmitry Malyshau 2022-04-07 15:02:35 +02:00 committed by Silvan Mosberger
parent d82ad37511
commit 625c488985
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# build inputs
, typing-extensions
}:
buildPythonPackage rec {
pname = "widlparser";
version = "1.0.12";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "plinss";
repo = pname;
rev = "v${version}";
sha256 = "sha256-T17fDWYd1naza/ao7kXWGcRIl2fzL1/Z9SaJiutZzqk=";
};
postPatch = ''
sed -i -e 's/0.0.0/${version}/' setup.py
'';
propagatedBuildInputs = [
typing-extensions
];
pythonImportsCheck = [ "widlparser" ];
meta = with lib; {
description = "Stand-alone WebIDL Parser in Python";
homepage = "https://github.com/plinss/widlparser";
license = licenses.mit;
maintainers = [ maintainers.kvark ];
};
}

View file

@ -10753,6 +10753,8 @@ in {
widgetsnbextension = callPackage ../development/python-modules/widgetsnbextension { };
widlparser = callPackage ../development/python-modules/widlparser { };
wiffi = callPackage ../development/python-modules/wiffi { };
willow = callPackage ../development/python-modules/willow { };