mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
00a3f6a0fb
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-mwclient/versions
31 lines
747 B
Nix
31 lines
747 B
Nix
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
, requests, requests_oauthlib, six
|
|
, pytest, pytestpep8, pytestcache, pytestcov, responses, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.10.0";
|
|
pname = "mwclient";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mwclient";
|
|
repo = "mwclient";
|
|
rev = "v${version}";
|
|
sha256 = "1c3q6lwmb05yqywc4ya98ca7hsl15niili8rccl4n1yqp77c103v";
|
|
};
|
|
|
|
checkInputs = [ pytest pytestpep8 pytestcache pytestcov responses mock ];
|
|
|
|
propagatedBuildInputs = [ requests requests_oauthlib six ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Python client library to the MediaWiki API";
|
|
license = licenses.mit;
|
|
homepage = https://github.com/mwclient/mwclient;
|
|
};
|
|
}
|