From 625c488985737b0b3aac4366a6a7d6d5d67ac1ba Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Thu, 7 Apr 2022 15:02:35 +0200 Subject: [PATCH] pythonPackages.widlparser: init at 1.0.12 --- .../python-modules/widlparser/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/widlparser/default.nix diff --git a/pkgs/development/python-modules/widlparser/default.nix b/pkgs/development/python-modules/widlparser/default.nix new file mode 100644 index 000000000000..d11fa492ca57 --- /dev/null +++ b/pkgs/development/python-modules/widlparser/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4196987efad2..2e88812d4b1d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };