nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 click,
5 fetchPypi,
6 pytestCheckHook,
7 setuptools,
8 six,
9 versioneer,
10}:
11
12buildPythonPackage rec {
13 pname = "click-spinner";
14 version = "0.1.10";
15 pyproject = true;
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-h+rPnXKYlzol12Fe9X1Hgq6/kTpTK7pLKKN+Nm6XXa8=";
20 };
21
22 postPatch = ''
23 rm versioneer.py
24 '';
25
26 build-system = [
27 setuptools
28 versioneer
29 ];
30
31 nativeCheckInputs = [
32 click
33 pytestCheckHook
34 six
35 ];
36
37 pythonImportsCheck = [ "click_spinner" ];
38
39 meta = {
40 description = "Add support for showwing that command line app is active to Click";
41 homepage = "https://github.com/click-contrib/click-spinner";
42 changelog = "https://github.com/click-contrib/click-spinner/releases/tag/v${version}";
43 license = lib.licenses.mit;
44 maintainers = [ ];
45 };
46}