1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5}:
6buildPythonPackage {
7 pname = "anchor";
8 version = "3";
9 format = "setuptools";
10
11 src = fetchFromGitHub {
12 owner = "justfoolingaround";
13 repo = "anchor";
14 # Using the commit hash because upstream does not have releases. https://github.com/justfoolingaround/anchor/issues/1
15 rev = "4cedb6a51877ed3a292cad61eb19013382915e86";
16 hash = "sha256-t75IFBSz6ncHRqXRxbrM9EQdr8xPXjSd9di+/y2LegE=";
17 };
18
19 pythonImportsCheck = [ "anchor" ];
20
21 meta = with lib; {
22 description = "Python library for scraping";
23 homepage = "https://github.com/justfoolingaround/anchor";
24 license = licenses.unfree;
25 maintainers = with maintainers; [ passivelemon ];
26 };
27}