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.
This commit is contained in:
parent
2606cb0fc2
commit
c0814cef0b
1 changed files with 6 additions and 4 deletions
|
@ -1,13 +1,15 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib, buildPythonPackage, fetchFromGitHub
|
||||||
, requests, urllib3, mock, setuptools, stone }:
|
, requests, urllib3, mock, setuptools, stone }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "dropbox";
|
pname = "dropbox";
|
||||||
version = "11.22.0";
|
version = "11.22.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "dropbox";
|
||||||
sha256 = "ab84c9c78606faa0dc94cdb95c6b2bdb579beb5f34fff42091c98a1e0fbeb16c";
|
repo = "dropbox-sdk-python";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0fhzpss3zs5x3hr4amrmw8hras75qc385ikpw0sx5a907kigk7w5";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
Loading…
Reference in a new issue