@@ -0,0 +1,46 @@
1+{ lib
2+, atomicwrites
3+, buildPythonPackage
4+, fetchFromGitHub
5+, pytestCheckHook
6+, pythonOlder
7+, requests
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "fpyutils";
12+ version = "2.0.0";
13+ disabled = pythonOlder "3.5";
14+
15+ src = fetchFromGitHub {
16+ owner = "frnmst";
17+ repo = pname;
18+ rev = version;
19+ sha256 = "1n15fvd6191ixxsza49fdd8j43hs0agagg8k9v6rc7by1ffqnl2b";
20+ };
21+
22+ propagatedBuildInputs = [
23+ atomicwrites
24+ requests
25+ ];
26+
27+ checkInputs = [
28+ pytestCheckHook
29+ ];
30+
31+ pytestFlagsArray = [ "fpyutils/tests/*.py" ];
32+
33+ disabledTests = [
34+ # Don't run test which requires bash
35+ "test_execute_command_live_output"
36+ ];
37+
38+ pythonImportsCheck = [ "fpyutils" ];
39+
40+ meta = with lib; {
41+ description = "Collection of useful non-standard Python functions";
42+ homepage = "https://github.com/frnmst/fpyutils";
43+ license = with licenses; [ gpl3Plus ];
44+ maintainers = with maintainers; [ fab ];
45+ };
46+}