diff options
author | Nicholas von Klitzing <nicholas.v.klitzing@gmail.com> | 2020-11-30 22:08:52 +0100 |
---|---|---|
committer | Nicholas von Klitzing <nicholas.v.klitzing@gmail.com> | 2020-12-07 14:09:50 +0100 |
commit | 5fb387e91f22457583825183d7b5e2f77fe5641b (patch) | |
tree | b57c8c9f9e3969f855b6c6c4a03b60aa0fe96f16 /pkgs/development/python-modules/etebase/default.nix | |
parent | 6d28718c0d6fbf9d41354144345777442685cce9 (diff) | |
download | nixpkgs-5fb387e91f22457583825183d7b5e2f77fe5641b.tar nixpkgs-5fb387e91f22457583825183d7b5e2f77fe5641b.tar.gz nixpkgs-5fb387e91f22457583825183d7b5e2f77fe5641b.tar.bz2 nixpkgs-5fb387e91f22457583825183d7b5e2f77fe5641b.tar.lz nixpkgs-5fb387e91f22457583825183d7b5e2f77fe5641b.tar.xz nixpkgs-5fb387e91f22457583825183d7b5e2f77fe5641b.tar.zst nixpkgs-5fb387e91f22457583825183d7b5e2f77fe5641b.zip |
etebase: init at 0.31.1
Diffstat (limited to 'pkgs/development/python-modules/etebase/default.nix')
-rw-r--r-- | pkgs/development/python-modules/etebase/default.nix | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/etebase/default.nix b/pkgs/development/python-modules/etebase/default.nix new file mode 100644 index 00000000000..366c447ed94 --- /dev/null +++ b/pkgs/development/python-modules/etebase/default.nix @@ -0,0 +1,61 @@ +{ stdenv +, wheel +, rustPlatform +, pipInstallHook +, setuptools-rust +, python +, msgpack +, requests +, openssl +, perl +, rustfmt +, fetchFromGitHub +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "etebase"; + version = "0.31.1"; + + src = fetchFromGitHub { + owner = "etesync"; + repo = "etebase-py"; + rev = "v${version}"; + sha256 = "163iw64l8lwawf84qswcjsq9p8qddv9ysjrr3dzqpqxb2yb0sy39"; + }; + + cargoSha256 = "0w8ypl6kj1mf6ahbdiwbd4jw6ldxdaig47zwk91jjsww5lbyx4lf"; + + nativeBuildInputs = [ + rustfmt + perl + openssl + pipInstallHook + setuptools-rust + wheel + ]; + + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + + propagatedBuildInputs = [ + python + msgpack + ]; + + doCheck = true; + + buildPhase = '' + ${python.interpreter} setup.py bdist_wheel + ''; + + installPhase = '' + pipInstallPhase + ''; + + meta = with stdenv.lib; { + homepage = "https://www.etebase.com/"; + description = "A Python client library for Etebase"; + license = licenses.bsd3; + maintainers = with maintainers; [ _3699n ]; + }; +} |