Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 39 lines 816 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, boto 6, boto3 7, bz2file 8, mock 9, moto 10, requests 11, responses 12}: 13 14buildPythonPackage rec { 15 pname = "smart-open"; 16 version = "4.2.0"; 17 disabled = pythonOlder "3.5"; 18 19 src = fetchPypi { 20 pname = "smart_open"; 21 inherit version; 22 sha256 = "d9f5a0f173ccb9bbae528db5a3804f57145815774f77ef755b9b0f3b4b2a9dcb"; 23 }; 24 25 # moto>=1.0.0 is backwards-incompatible and some tests fail with it, 26 # so disable tests for now 27 doCheck = false; 28 29 checkInputs = [ mock moto responses ]; 30 31 # upstream code requires both boto and boto3 32 propagatedBuildInputs = [ boto boto3 bz2file requests ]; 33 34 meta = { 35 license = lib.licenses.mit; 36 description = "Library for efficient streaming of very large file"; 37 maintainers = with lib.maintainers; [ jyp ]; 38 }; 39}