1{ lib, buildPythonPackage, fetchPypi, pytest }:
2
3buildPythonPackage rec {
4 pname = "whichcraft";
5 version = "0.4.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "9e0d51c9387cb7e9f28b7edb549e6a03da758f7784f991eb4397d7f7808c57fd";
10 };
11
12 checkInputs = [ pytest ];
13
14 checkPhase = ''
15 py.test
16 '';
17
18 meta = with lib; {
19 homepage = https://github.com/pydanny/whichcraft;
20 description = "Cross-platform cross-python shutil.which functionality";
21 license = licenses.bsd3;
22 };
23}