From c0814cef0bcdc20c082ff90f031f46611c0abd99 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Mon, 30 Aug 2021 20:26:39 -0400 Subject: [PATCH] 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. --- pkgs/development/python-modules/dropbox/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/dropbox/default.nix b/pkgs/development/python-modules/dropbox/default.nix index 3e79e40270b7..5b9301172b6d 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 = ''