1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5}:
6
7buildPythonPackage rec {
8 pname = "empty-files";
9 version = "0.0.3";
10
11 src = fetchFromGitHub {
12 owner = "approvals";
13 repo = "EmptyFiles.Python";
14 rev = "v${version}";
15 sha256 = "sha256-K4rlVO1X1AWxYI3EqLsyQ5/Ist/jlwFrmOM4aMojtKU=";
16 };
17
18 propagatedBuildInputs = [
19 requests
20 ];
21
22 # cyclic dependency with approvaltests
23 doCheck = false;
24
25 pythonImportsCheck = [ "empty_files" ];
26
27 meta = with lib; {
28 description = "Null Object pattern for files";
29 homepage = "https://github.com/approvals/EmptyFiles.Python";
30 license = licenses.asl20;
31 maintainers = with maintainers; [ jonringer ];
32 };
33}