My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/widlparser/default.nix

38 lines
744 B

{ 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 ];
};
}