Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 41 lines 905 B view raw
1{ buildPythonPackage 2, asn1crypto 3, fetchPypi 4, lib 5, openssl 6}: 7 8buildPythonPackage rec { 9 pname = "oscrypto"; 10 version = "1.1.1"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "1vlryamwr442w2av8f54ldhls8fqs6678fg60pqbrf5pjy74kg23"; 15 }; 16 17 testSources = fetchPypi { 18 inherit version; 19 pname = "oscrypto_tests"; 20 sha256 = "1crndz647pqdd8148yn3n5l63xwr6qkwa1qarsz59nk3ip0dsyq5"; 21 }; 22 23 preCheck = '' 24 tar -xf ${testSources} 25 mv oscrypto_tests-${version} tests 26 27 # remove tests that require network 28 sed -e '/TLSTests/d' -e '/TrustListTests/d' -i tests/__init__.py 29 ''; 30 31 propagatedBuildInputs = [ 32 asn1crypto 33 openssl 34 ]; 35 36 meta = with lib; { 37 description = "A compilation-free, always up-to-date encryption library for Python that works on Windows, OS X, Linux and BSD."; 38 homepage = "https://www.snowflake.com/"; 39 license = licenses.mit; 40 }; 41}