Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch2, 6 pyexcel-io, 7 xlrd, 8 xlwt, 9 pyexcel, 10 pytestCheckHook, 11 pytest-cov-stub, 12 setuptools, 13}: 14 15buildPythonPackage rec { 16 pname = "pyexcel-xls"; 17 version = "0.7.0"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "pyexcel"; 22 repo = "pyexcel-xls"; 23 rev = "v${version}"; 24 hash = "sha256-wxsx/LfeBxi+NnHxfxk3svzsBcdwOiLQ1660eoHfmLg="; 25 }; 26 27 patches = [ 28 # https://github.com/pyexcel/pyexcel-xls/pull/54 29 (fetchpatch2 { 30 name = "nose-to-pytest.patch"; 31 url = "https://github.com/pyexcel/pyexcel-xls/compare/d8953c8ff7dc9a4a3465f2cfc182acafa49f6ea2...9f0d48035114f73077dd0f109395af32b4d9d48b.patch"; 32 hash = "sha256-2kVdN+kEYaJjXGzv9eudfKjRweMG0grTd5wnZXIDzUU="; 33 excludes = [ ".github/*" ]; 34 }) 35 ]; 36 37 build-system = [ setuptools ]; 38 39 dependencies = [ 40 pyexcel-io 41 xlrd 42 xlwt 43 ]; 44 45 nativeCheckInputs = [ 46 pytestCheckHook 47 pyexcel 48 pytest-cov-stub 49 ]; 50 51 postPatch = '' 52 substituteInPlace setup.py --replace "xlrd<2" "xlrd<3" 53 ''; 54 55 meta = { 56 description = "Wrapper library to read, manipulate and write data in xls using xlrd and xlwt"; 57 homepage = "http://docs.pyexcel.org/"; 58 license = lib.licenses.bsd3; 59 maintainers = [ ]; 60 }; 61}