summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/github-to-sqlite/default.nix
blob: f0f16d86c5cf68636ee7e59d4fcfa37c448456c5 (plain)
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
{
  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 = "github-to-sqlite";
    rev = version;
    hash = "sha256-KwLaaZxBBzRhiBv4p8Imb5XI1hyka9rmr/rxA6wDc7Q=";
  };

  propagatedBuildInputs = [
    sqlite-utils
    pyyaml
    requests
  ];

  nativeCheckInputs = [
    pytestCheckHook
    requests-mock
  ];

  disabledTests = [ "test_scrape_dependents" ];

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