mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-14 20:10:25 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
47 lines
901 B
Nix
47 lines
901 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|