Merge pull request #119109 from fabaff/bump-hass-nabucasa

This commit is contained in:
Sandro 2021-04-11 23:05:10 +02:00 committed by GitHub
commit 1c518b1523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 14 deletions

View File

@ -15,13 +15,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "hass-nabucasa"; pname = "hass-nabucasa";
version = "0.42.0"; version = "0.43.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nabucasa"; owner = "nabucasa";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-vDgjuNgwNp9cDgiCNxhACOcuaxcrR+0DW/U5OaSW0n4="; sha256 = "sha256-mfVSiquZrCtAza4q9Ocle22e4ZMoTgxguevuOlZEUm8=";
}; };
postPatch = '' postPatch = ''

View File

@ -1,7 +1,6 @@
{ lib { lib
, boto3 , boto3
, buildPythonPackage , buildPythonPackage
, cryptography
, envs , envs
, fetchFromGitHub , fetchFromGitHub
, isPy27 , isPy27
@ -13,20 +12,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pycognito"; pname = "pycognito";
version = "0.1.5"; version = "2021.03.1";
disabled = isPy27;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pvizeli"; owner = "pvizeli";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-RJeHPCTuaLN+zB0N0FGt4qrTI6++1ks5iBn64Cx0Psc="; sha256 = "sha256-V3R6i1/FZrjcfRqJhczjURr/+x++iCvZ3aCK9wdEL1A=";
}; };
postPatch = ''
substituteInPlace setup.py \
--replace 'python-jose[cryptography]' 'python-jose'
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
boto3 boto3
envs envs
@ -34,20 +29,24 @@ buildPythonPackage rec {
requests requests
]; ];
disabled = isPy27;
checkInputs = [ checkInputs = [
mock mock
pytestCheckHook pytestCheckHook
]; ];
postPatch = ''
substituteInPlace setup.py \
--replace 'python-jose[cryptography]' 'python-jose'
'';
pytestFlagsArray = [ "tests.py" ]; pytestFlagsArray = [ "tests.py" ];
pythonImportsCheck = [ "pycognito" ]; pythonImportsCheck = [ "pycognito" ];
meta = with lib; { meta = with lib; {
description = "Python class to integrate Boto3's Cognito client so it is easy to login users. With SRP support"; description = "Python class to integrate Boto3's Cognito client so it is easy to login users. With SRP support";
homepage = "https://GitHub.com/pvizeli/pycognito"; homepage = "https://github.com/pvizeli/pycognito";
license = licenses.asl20; license = licenses.asl20;
maintainers = [ maintainers.mic92 ]; maintainers = with maintainers; [ mic92 ];
}; };
} }