mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-13 21:56:29 +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>
31 lines
683 B
Nix
31 lines
683 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
flake8,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pure-cdb";
|
|
version = "4.0.0";
|
|
format = "setuptools";
|
|
|
|
# Archive on pypi has no tests.
|
|
src = fetchFromGitHub {
|
|
owner = "bbayles";
|
|
repo = "python-pure-cdb";
|
|
tag = "v${version}";
|
|
hash = "sha256-7zxQO+oTZJhXfM2yijGXchLixiQRuFTOSESVlEc+T0s=";
|
|
};
|
|
|
|
nativeCheckInputs = [ flake8 ];
|
|
|
|
pythonImportsCheck = [ "cdblib" ];
|
|
|
|
meta = {
|
|
description = "Python library for working with constant databases";
|
|
homepage = "https://python-pure-cdb.readthedocs.io/en/latest";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ kaction ];
|
|
};
|
|
}
|