summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-fsutil/default.nix
diff options
context:
space:
mode:
authorJoão Figueira <jmc.figueira@campus.fct.unl.pt>2022-01-24 01:33:13 +0000
committerGitHub <noreply@github.com>2022-01-24 01:33:13 +0000
commitae10fad86b2d7a357825c19a563dd5dac60a67da (patch)
treea2bde77769ba6055989c27aaf1ac7287ad56d640 /pkgs/development/python-modules/python-fsutil/default.nix
parent0ac894e7d1d91e32fdcdc901229f16f27f321374 (diff)
parent8dbc4efd40169a8e3e57375b08d78205e5f83ff0 (diff)
Merge branch 'master' into wine-wayland
Diffstat (limited to 'pkgs/development/python-modules/python-fsutil/default.nix')
-rw-r--r--pkgs/development/python-modules/python-fsutil/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-fsutil/default.nix b/pkgs/development/python-modules/python-fsutil/default.nix
new file mode 100644
index 000000000000..17dbd579e841
--- /dev/null
+++ b/pkgs/development/python-modules/python-fsutil/default.nix
@@ -0,0 +1,51 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pytestCheckHook
+, pythonOlder
+, requests
+}:
+
+buildPythonPackage rec {
+ pname = "python-fsutil";
+ version = "0.5.0";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.7";
+
+ src = fetchFromGitHub {
+ owner = "fabiocaccamo";
+ repo = pname;
+ rev = version;
+ hash = "sha256-zWthL7iwdVzdihX2YA4G//B18iwe1gRT0GM2KNP01kQ=";
+ };
+
+ propagatedBuildInputs = [
+ requests
+ ];
+
+ checkInputs = [
+ pytestCheckHook
+ ];
+
+ pytestFlagsArray = [
+ "tests/test.py"
+ ];
+
+ disabledTests = [
+ # Tests require network access
+ "test_download_file"
+ "test_read_file_from_url"
+ ];
+
+ pythonImportsCheck = [
+ "fsutil"
+ ];
+
+ meta = with lib; {
+ description = "Module with file-system utilities";
+ homepage = "https://github.com/fabiocaccamo/python-fsutil";
+ license = licenses.mit;
+ maintainers = with maintainers; [ fab ];
+ };
+}