Files
nixpkgs/pkgs/development/python-modules/ci-info/default.nix
T
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

38 lines
697 B
Nix

{
lib,
buildPythonPackage,
isPy27,
fetchPypi,
pytest,
pytestCheckHook,
}:
buildPythonPackage rec {
version = "0.3.0";
format = "setuptools";
pname = "ci-info";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
hash = "sha256-H9UMvUAfKa3/7rGLBIniMtFqwadFisa8MW3qtq5TX7A=";
};
nativeCheckInputs = [
pytest
pytestCheckHook
];
doCheck = false; # both tests access network
pythonImportsCheck = [ "ci_info" ];
meta = {
description = "Gather continuous integration information on the fly";
homepage = "https://github.com/mgxd/ci-info";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}