1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5
6 # pythonPackages
7 pytest,
8}:
9
10buildPythonPackage rec {
11 pname = "names";
12 version = "0.3.0";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "treyhunner";
17 repo = "names";
18 rev = version;
19 sha256 = "0jfn11bl05k3qkqw0f4vi2i2lhllxdrbb1732qiisdy9fbvv8611";
20 };
21
22 nativeCheckInputs = [ pytest ];
23
24 checkPhase = ''
25 pytest
26 '';
27
28 meta = {
29 description = "Generate random names";
30 mainProgram = "names";
31 homepage = "https://github.com/treyhunner/names";
32 license = lib.licenses.mit;
33 maintainers = with lib.maintainers; [ kamadorueda ];
34 };
35}