nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 47 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 lxml, 7 poetry-core, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "xpath-expressions"; 13 version = "1.1.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "orf"; 18 repo = "xpath-expressions"; 19 rev = "v${version}"; 20 hash = "sha256-UAzDXrz1Tr9/OOjKAg/5Std9Qlrnizei8/3XL3hMSFA="; 21 }; 22 23 patches = [ 24 # https://github.com/orf/xpath-expressions/pull/4 25 (fetchpatch { 26 name = "replace-poetry-with-poetry-core.patch"; 27 url = "https://github.com/orf/xpath-expressions/commit/3c5900fd6b2d08dd9468707f35ab42072cf75bd3.patch"; 28 hash = "sha256-IeV6ncJyt/w2s5TPpbM5a3pljNT6Bp5PIiqgTg2iTRA="; 29 }) 30 ]; 31 32 nativeBuildInputs = [ poetry-core ]; 33 34 nativeCheckInputs = [ 35 lxml 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "xpath" ]; 40 41 meta = { 42 description = "Python module to handle XPath expressions"; 43 homepage = "https://github.com/orf/xpath-expressions"; 44 license = with lib.licenses; [ mit ]; 45 maintainers = with lib.maintainers; [ fab ]; 46 }; 47}