default.nix (793B)
1 { 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 }: 6 7 python3Packages.buildPythonApplication { 8 pname = "lazyscraper"; 9 version = "2020-05-19"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "ivbeg"; 14 repo = "lazyscraper"; 15 rev = "2e14bd829311cde19ef32d7f0e11c3c4a3c08e1b"; 16 hash = "sha256-gnhJB+ZMKQIYZNHMeRrlICgz5UhyHy72Js/I4kbp8Qo="; 17 }; 18 19 build-system = with python3Packages; [ setuptools ]; 20 21 dependencies = with python3Packages; [ 22 click 23 lxml 24 requests 25 ]; 26 27 postInstall = "mv $out/bin/lscraper.py $out/bin/lscraper"; 28 29 meta = { 30 description = "Lazy helper tool to make easier scraping with simple tasks"; 31 homepage = "https://github.com/ivbeg/lazyscraper"; 32 license = lib.licenses.asl20; 33 maintainers = [ lib.maintainers.sikmir ]; 34 }; 35 }