diff options
author | Dmitry Bogatov <git#v1@kaction.cc> | 2021-08-30 20:26:39 -0400 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-11-06 13:50:08 -0700 |
commit | c0814cef0bcdc20c082ff90f031f46611c0abd99 (patch) | |
tree | d883254626ec343b6d1a59e184f7d9c1df60abf5 /pkgs/development/python-modules/dropbox | |
parent | 2606cb0fc24e65f489b7d9fdcbf219756e45db35 (diff) |
python3.pkgs.dropbox: use source from git, since it contains documentation
While there is discussion (#136100) about building Sphinx documentation in nixpkgs proper, this change makes life easier for those who build documentation out-of-tree, in personal overlays, since it allows inheriting "src" attribute instead of matching git and pypi themself.
Diffstat (limited to 'pkgs/development/python-modules/dropbox')
-rw-r--r-- | pkgs/development/python-modules/dropbox/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/dropbox/default.nix b/pkgs/development/python-modules/dropbox/default.nix index 3e79e40270b71..5b9301172b6d4 100644 --- a/pkgs/development/python-modules/dropbox/default.nix +++ b/pkgs/development/python-modules/dropbox/default.nix @@ -1,13 +1,15 @@ -{ lib, buildPythonPackage, fetchPypi +{ lib, buildPythonPackage, fetchFromGitHub , requests, urllib3, mock, setuptools, stone }: buildPythonPackage rec { pname = "dropbox"; version = "11.22.0"; - src = fetchPypi { - inherit pname version; - sha256 = "ab84c9c78606faa0dc94cdb95c6b2bdb579beb5f34fff42091c98a1e0fbeb16c"; + src = fetchFromGitHub { + owner = "dropbox"; + repo = "dropbox-sdk-python"; + rev = "v${version}"; + sha256 = "0fhzpss3zs5x3hr4amrmw8hras75qc385ikpw0sx5a907kigk7w5"; }; postPatch = '' |