1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytest,
6}:
7
8buildPythonPackage rec {
9 pname = "backcall";
10 version = "0.2.0";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e";
16 };
17
18 nativeCheckInputs = [ pytest ];
19
20 checkPhase = ''
21 py.test
22 '';
23
24 meta = {
25 description = "Specifications for callback functions passed in to an API";
26 homepage = "https://github.com/takluyver/backcall";
27 license = lib.licenses.bsd3;
28 };
29}