Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy3k 5, beautifulsoup4 6, pytestCheckHook 7, pyyaml 8, requests 9, requests-mock 10, sqlite-utils 11}: 12 13buildPythonPackage rec { 14 pname = "github-to-sqlite"; 15 version = "2.8.3"; 16 disabled = !isPy3k; 17 18 src = fetchFromGitHub { 19 owner = "dogsheep"; 20 repo = pname; 21 rev = version; 22 hash = "sha256-4wkwtcChcR7XH421wa3dGdIPhwgeaTFk247zIRX98xo="; 23 }; 24 25 propagatedBuildInputs = [ 26 beautifulsoup4 27 sqlite-utils 28 pyyaml 29 requests 30 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 requests-mock 35 ]; 36 37 disabledTests = [ 38 "test_scrape_dependents" 39 ]; 40 41 meta = with lib; { 42 description = "Save data from GitHub to a SQLite database"; 43 homepage = "https://github.com/dogsheep/github-to-sqlite"; 44 license = licenses.asl20; 45 maintainers = with maintainers; [ sarcasticadmin ]; 46 }; 47}