blob: 6012398db982b845440b71b63ee76cdd030ae1d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ buildPythonPackage
, asn1crypto
, fetchPypi
, lib
, openssl
}:
buildPythonPackage rec {
pname = "oscrypto";
version = "1.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "1vlryamwr442w2av8f54ldhls8fqs6678fg60pqbrf5pjy74kg23";
};
testSources = fetchPypi {
inherit version;
pname = "oscrypto_tests";
sha256 = "1crndz647pqdd8148yn3n5l63xwr6qkwa1qarsz59nk3ip0dsyq5";
};
preCheck = ''
tar -xf ${testSources}
mv oscrypto_tests-${version} tests
# remove tests that require network
sed -e '/TLSTests/d' -e '/TrustListTests/d' -i tests/__init__.py
'';
propagatedBuildInputs = [
asn1crypto
openssl
];
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/";
license = licenses.mit;
};
}
|