1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 flask,
7 nose2,
8}:
9
10buildPythonPackage rec {
11 pname = "flask-xml-rpc-re";
12 version = "0.2.0";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "Croydon";
17 repo = "flask-xml-rpc-reloaded";
18 tag = version;
19 hash = "sha256-S+9Ur22ExgVjKMOKG19cBz2aCVdEyOoS7uoz17CDzd8=";
20 };
21
22 build-system = [
23 setuptools
24 ];
25
26 dependencies = [
27 flask
28 ];
29
30 nativeCheckInputs = [
31 nose2
32 ];
33
34 installCheckPhase = ''
35 runHook preInstallCheck
36 nose2 -v
37 runHook postInstallCheck
38 '';
39
40 pythonImportsCheck = [ "flask_xmlrpcre" ];
41
42 meta = {
43 description = "Let your Flask apps provide XML-RPC APIs";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [
46 lukegb
47 ];
48 homepage = "https://github.com/Croydon/flask-xml-rpc-reloaded";
49 changelog = "https://github.com/Croydon/flask-xml-rpc-reloaded/releases/tag/${version}";
50 };
51}