nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 822 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 mock, 6 pytest-cov-stub, 7 pytestCheckHook, 8 requests, 9 requests-oauthlib, 10 responses, 11 six, 12}: 13 14buildPythonPackage rec { 15 version = "0.11.0"; 16 pname = "mwclient"; 17 format = "setuptools"; 18 19 src = fetchFromGitHub { 20 owner = "mwclient"; 21 repo = "mwclient"; 22 tag = "v${version}"; 23 sha256 = "sha256-qnWVQEG1Ri0z4RYmmG/fxYrlIFFf/6PnP5Dnv0cZb5I="; 24 }; 25 26 propagatedBuildInputs = [ 27 requests 28 requests-oauthlib 29 six 30 ]; 31 32 nativeCheckInputs = [ 33 mock 34 pytest-cov-stub 35 pytestCheckHook 36 responses 37 ]; 38 39 pythonImportsCheck = [ "mwclient" ]; 40 41 meta = { 42 description = "Python client library to the MediaWiki API"; 43 license = lib.licenses.mit; 44 homepage = "https://github.com/mwclient/mwclient"; 45 maintainers = [ ]; 46 }; 47}