-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathloaders.nix
37 lines (33 loc) · 965 Bytes
/
loaders.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
final: prev:
let
inherit (final) buildPythonPackage;
inherit (final.lib) licenses maintainers;
inherit (final.pkgs) fetchFromGitHub;
in
{
selectolax = buildPythonPackage rec {
pname = "selectolax";
version = "0.3.21";
pyproject = true;
src = fetchFromGitHub {
owner = "rushter";
repo = "selectolax";
rev = "v${version}";
hash = "sha256-Ab09I0CUq/FB4Rtl+ccgr9ap7vCAeujdSNTmCVjEOjs=";
fetchSubmodules = true;
};
nativeBuildInputs = with final; [
cython
setuptools
wheel
];
pythonImportsCheck = [ "selectolax" ];
meta = {
description = "Python binding to Modest and Lexbor engines (fast HTML5 parser with CSS selectors";
homepage = "https://github.com/rushter/selectolax";
changelog = "https://github.com/rushter/selectolax/blob/${src.rev}/CHANGES.rst";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
}