python3Packages.oscrypto: 1.1.1 -> 1.2.1
This commit is contained in:
parent
cdbf7da301
commit
8bda4a282d
|
@ -1,25 +1,30 @@
|
||||||
{ buildPythonPackage
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
, asn1crypto
|
, asn1crypto
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, lib
|
|
||||||
, openssl
|
, openssl
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "oscrypto";
|
pname = "oscrypto";
|
||||||
version = "1.1.1";
|
version = "1.2.1";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1vlryamwr442w2av8f54ldhls8fqs6678fg60pqbrf5pjy74kg23";
|
sha256 = "1546si2bdgkqnbvv4mw1hr4mhh6bq39d9z4wxgv1m7fq6miclb3x";
|
||||||
};
|
};
|
||||||
|
|
||||||
testSources = fetchPypi {
|
testSources = fetchPypi {
|
||||||
inherit version;
|
inherit version;
|
||||||
pname = "oscrypto_tests";
|
pname = "oscrypto_tests";
|
||||||
sha256 = "1crndz647pqdd8148yn3n5l63xwr6qkwa1qarsz59nk3ip0dsyq5";
|
sha256 = "1ha68dsrbx6mlra44x0n81vscn17pajbl4yg7cqkk7mq1zfmjwks";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
asn1crypto
|
||||||
|
openssl
|
||||||
|
];
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
tar -xf ${testSources}
|
tar -xf ${testSources}
|
||||||
mv oscrypto_tests-${version} tests
|
mv oscrypto_tests-${version} tests
|
||||||
|
@ -28,14 +33,11 @@ buildPythonPackage rec {
|
||||||
sed -e '/TLSTests/d' -e '/TrustListTests/d' -i tests/__init__.py
|
sed -e '/TLSTests/d' -e '/TrustListTests/d' -i tests/__init__.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
pythonImportsCheck = [ "oscrypto" ];
|
||||||
asn1crypto
|
|
||||||
openssl
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A compilation-free, always up-to-date encryption library for Python that works on Windows, OS X, Linux and BSD.";
|
description = "Encryption library for Python";
|
||||||
homepage = "https://www.snowflake.com/";
|
homepage = "https://github.com/wbond/oscrypto";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue