mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 06:24:08 +01: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>
37 lines
793 B
Nix
37 lines
793 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
tinydb,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tinyrecord";
|
|
version = "0.2.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eugene-eeo";
|
|
repo = "tinyrecord";
|
|
tag = "v${version}";
|
|
hash = "sha256-mF4hpHuNyiQ5DurRnyLck5e/Vp26GCLkhD8eeSB4NYs=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
tinydb
|
|
];
|
|
|
|
enabledTestPaths = [ "tests.py" ];
|
|
|
|
pythonImportsCheck = [ "tinyrecord" ];
|
|
|
|
meta = {
|
|
description = "Transaction support for TinyDB";
|
|
homepage = "https://github.com/eugene-eeo/tinyrecord";
|
|
changelog = "https://github.com/eugene-eeo/tinyrecord/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
};
|
|
}
|