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