Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / fpyutils / default.nix
blob3ad71f9a26172a1a6c56d85edc94a2e3e7777de5
1 { lib
2 , atomicwrites
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pytestCheckHook
6 , pythonOlder
7 , requests
8 }:
10 buildPythonPackage rec {
11   pname = "fpyutils";
12   version = "3.0.1";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "frnmst";
19     repo = pname;
20     rev = "refs/tags/${version}";
21     hash = "sha256-cmCD8uKPX/7Ak6jAqzCvDqR1FgH09GaLfLTZdBQB+bs=";
22   };
24   propagatedBuildInputs = [
25     atomicwrites
26     requests
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   pytestFlagsArray = [
34     "fpyutils/tests/*.py"
35   ];
37   disabledTests = [
38     # Don't run test which requires bash
39     "test_execute_command_live_output"
40   ];
42   pythonImportsCheck = [
43     "fpyutils"
44   ];
46   meta = with lib; {
47     description = "Collection of useful non-standard Python functions";
48     homepage = "https://github.com/frnmst/fpyutils";
49     changelog = "https://blog.franco.net.eu.org/software/fpyutils-${version}/release.html";
50     license = with licenses; [ gpl3Plus ];
51     maintainers = with maintainers; [ fab ];
52   };