1{ stdenv, buildPythonApplication, fetchPypi, fetchpatch
2, pytest, nose }:
3
4buildPythonApplication rec {
5 pname = "sybil";
6 version = "1.0.9";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "41d2f1dba8fd1d8ead5e9b1220b590fab8b0d1ca01d43da08555b1fb08d4d8e8";
11 };
12
13 patches = [
14 (fetchpatch {
15 url = https://github.com/cjw296/sybil/commit/6461d8156cfb68bd073ec613a5a516916e97e549.patch;
16 sha256 = "0aqny0i7l6g6d7vr025b90zz8wzszqdbmi05mp67dxw5xqjqvxj2";
17 })
18 ];
19
20 checkInputs = [ pytest nose ];
21
22 checkPhase = ''
23 py.test tests
24 '';
25
26 meta = with stdenv.lib; {
27 description = "Automated testing for the examples in your documentation.";
28 homepage = https://github.com/cjw296/sybil/;
29 license = licenses.mit;
30 };
31}