1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

python3Packages.oscrypto: 1.1.1 -> 1.2.1

This commit is contained in:
Fabian Affolter 2021-06-01 17:15:34 +02:00
parent cdbf7da301
commit 8bda4a282d

View file

@ -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;
};
}