nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv
2, lib
3, buildPythonPackage
4, fetchPypi
5, pytestCheckHook
6, chardet
7, cssselect
8, lxml
9}:
10
11buildPythonPackage rec {
12 pname = "readability-lxml";
13 version = "0.8.1";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-5R/qVrWQmq+IbTB9SOeeCWKTJVr6Vnt9CLypTSWxpOE=";
18 };
19
20 propagatedBuildInputs = [ chardet cssselect lxml ];
21
22 postPatch = ''
23 substituteInPlace setup.py --replace 'sys.platform == "darwin"' "False"
24 '';
25
26 doCheck = false;
27
28 meta = with lib; {
29 broken = stdenv.isDarwin;
30 description = "Fast python port of arc90's readability tool";
31 homepage = "https://github.com/buriy/python-readability";
32 license = licenses.apsl20;
33 maintainers = with maintainers; [ siraben ];
34 };
35}