mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
python3Packages.xpath-expressions: init at 1.1.0
This commit is contained in:
parent
63be3d6498
commit
1f1981a743
2 changed files with 48 additions and 0 deletions
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, lxml
|
||||
, poetry-core
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "xpath-expressions";
|
||||
version = "1.1.0";
|
||||
disabled = pythonOlder "3.5";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "orf";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0l289iw2zmzxyfi3g2z7b917vmsaz47h5jp871zvykpmpigc632h";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
lxml
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Was fixed upstream but not released
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "poetry.masonry.api" "poetry.core.masonry.api"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "xpath" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module to handle XPath expressions";
|
||||
homepage = "https://github.com/orf/xpath-expressions";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -8956,6 +8956,8 @@ in {
|
|||
|
||||
xnd = callPackage ../development/python-modules/xnd { };
|
||||
|
||||
xpath-expressions = callPackage ../development/python-modules/xpath-expressions { };
|
||||
|
||||
xpybutil = callPackage ../development/python-modules/xpybutil { };
|
||||
|
||||
xstatic-bootbox = callPackage ../development/python-modules/xstatic-bootbox { };
|
||||
|
|
Loading…
Reference in a new issue