Files
nixpkgs/pkgs/development/python-modules/empty-files/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

34 lines
679 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
}:
buildPythonPackage rec {
pname = "empty-files";
version = "0.0.9";
format = "setuptools";
src = fetchFromGitHub {
owner = "approvals";
repo = "EmptyFiles.Python";
tag = "v${version}";
hash = "sha256-P/woyAN9cYdxryX1iM36C53c9dL6lo4eoTzBWT2cd3A=";
};
propagatedBuildInputs = [ requests ];
# cyclic dependency with approvaltests
doCheck = false;
pythonImportsCheck = [ "empty_files" ];
meta = {
description = "Null Object pattern for files";
homepage = "https://github.com/approvals/EmptyFiles.Python";
license = lib.licenses.asl20;
maintainers = [ ];
};
}