From 8bda4a282de9b20b5b72aeaf1f987677936f53b7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 1 Jun 2021 17:15:34 +0200 Subject: [PATCH] python3Packages.oscrypto: 1.1.1 -> 1.2.1 --- .../python-modules/oscrypto/default.nix | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/oscrypto/default.nix b/pkgs/development/python-modules/oscrypto/default.nix index 6012398db982..cc89f3124806 100644 --- a/pkgs/development/python-modules/oscrypto/default.nix +++ b/pkgs/development/python-modules/oscrypto/default.nix @@ -1,25 +1,30 @@ -{ buildPythonPackage +{ lib +, buildPythonPackage , asn1crypto , fetchPypi -, lib , openssl }: buildPythonPackage rec { pname = "oscrypto"; - version = "1.1.1"; + version = "1.2.1"; src = fetchPypi { inherit pname version; - sha256 = "1vlryamwr442w2av8f54ldhls8fqs6678fg60pqbrf5pjy74kg23"; + sha256 = "1546si2bdgkqnbvv4mw1hr4mhh6bq39d9z4wxgv1m7fq6miclb3x"; }; testSources = fetchPypi { inherit version; pname = "oscrypto_tests"; - sha256 = "1crndz647pqdd8148yn3n5l63xwr6qkwa1qarsz59nk3ip0dsyq5"; + sha256 = "1ha68dsrbx6mlra44x0n81vscn17pajbl4yg7cqkk7mq1zfmjwks"; }; + propagatedBuildInputs = [ + asn1crypto + openssl + ]; + preCheck = '' tar -xf ${testSources} mv oscrypto_tests-${version} tests @@ -28,14 +33,11 @@ buildPythonPackage rec { sed -e '/TLSTests/d' -e '/TrustListTests/d' -i tests/__init__.py ''; - propagatedBuildInputs = [ - asn1crypto - openssl - ]; + pythonImportsCheck = [ "oscrypto" ]; meta = with lib; { - description = "A compilation-free, always up-to-date encryption library for Python that works on Windows, OS X, Linux and BSD."; - homepage = "https://www.snowflake.com/"; + description = "Encryption library for Python"; + homepage = "https://github.com/wbond/oscrypto"; license = licenses.mit; }; }