nixpkgs/pkgs/development/python-modules/pure-cdb/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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 ];
};
}