nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 50 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 google-auth-oauthlib, 6 google-auth, 7 setuptools, 8 versioneer, 9}: 10 11buildPythonPackage rec { 12 pname = "pydata-google-auth"; 13 version = "1.9.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 repo = "pydata-google-auth"; 18 owner = "pydata"; 19 tag = version; 20 hash = "sha256-NxEpwCkjNWao2bnKOsDgw93N+cVqwM12VfoEu8CyWUU="; 21 }; 22 23 postPatch = '' 24 # Remove vendorized versioneer.py 25 rm versioneer.py 26 ''; 27 28 build-system = [ 29 setuptools 30 versioneer 31 ]; 32 33 dependencies = [ 34 google-auth 35 google-auth-oauthlib 36 ]; 37 38 # tests require network access 39 doCheck = false; 40 41 pythonImportsCheck = [ "pydata_google_auth" ]; 42 43 meta = { 44 description = "Helpers for authenticating to Google APIs"; 45 homepage = "https://github.com/pydata/pydata-google-auth"; 46 changelog = "https://github.com/pydata/pydata-google-auth/releases/tag/${version}"; 47 license = lib.licenses.bsd3; 48 maintainers = with lib.maintainers; [ cpcloud ]; 49 }; 50}