diff --git a/pkgs/tools/admin/swiftclient/default.nix b/pkgs/tools/admin/swiftclient/default.nix new file mode 100644 index 00000000000..ae8e5cac68c --- /dev/null +++ b/pkgs/tools/admin/swiftclient/default.nix @@ -0,0 +1,32 @@ +{ lib, buildPythonApplication, fetchPypi, requests, six, pbr }: + +buildPythonApplication rec { + pname = "python-swiftclient"; + version = "3.6.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0sv6z72zdwzwdjng0djk3l2maryn9pz3khf69yq5ig2ycz8hh0qv"; + }; + + propagatedBuildInputs = [ requests six pbr ]; + + # For the tests the following requirements are needed: + # https://github.com/openstack/python-swiftclient/blob/master/test-requirements.txt + # + # The ones missing in nixpkgs (currently) are: + # - hacking + # - keystoneauth + # - oslosphinx + # - stestr + # - reno + # - openstackdocstheme + doCheck = false; + + meta = with lib; { + homepage = https://github.com/openstack/python-swiftclient; + description = "Python bindings to the OpenStack Object Storage API"; + license = licenses.asl20; + maintainers = with maintainers; [ c0deaddict ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ee3e9663756..6e27911bec7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12586,6 +12586,8 @@ in svrcore = callPackage ../development/libraries/svrcore { }; + swiftclient = python3.pkgs.callPackage ../tools/admin/swiftclient { }; + sword = callPackage ../development/libraries/sword { }; biblesync = callPackage ../development/libraries/biblesync { };