about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/github-to-sqlite/default.nix
blob: 67ec970bda7b6a0874cda6cab4850eebc6d32b38 (plain) (blame)
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
38
39
40
41
42
43
44
45
46
47
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pytestCheckHook
, pyyaml
, requests
, requests-mock
, sqlite-utils
}:

buildPythonPackage rec {
  pname = "github-to-sqlite";
  version = "2.9";
  format = "setuptools";
  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "dogsheep";
    repo = pname;
    rev = version;
    hash = "sha256-KwLaaZxBBzRhiBv4p8Imb5XI1hyka9rmr/rxA6wDc7Q=";
  };

  propagatedBuildInputs = [
    sqlite-utils
    pyyaml
    requests
  ];

  nativeCheckInputs = [
    pytestCheckHook
    requests-mock
  ];

  disabledTests = [
    "test_scrape_dependents"
  ];

  meta = with lib; {
    description = "Save data from GitHub to a SQLite database";
    mainProgram = "github-to-sqlite";
    homepage = "https://github.com/dogsheep/github-to-sqlite";
    license = licenses.asl20;
    maintainers = with maintainers; [ sarcasticadmin ];
  };
}