about summary refs log tree commit diff
path: root/pkgs/development/python-modules/names/default.nix
blob: c4648e171a7282dbba8d4129e9bc61b57d1ea9f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,

  # pythonPackages
  pytest,
}:

buildPythonPackage rec {
  pname = "names";
  version = "0.3.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "treyhunner";
    repo = pname;
    rev = version;
    sha256 = "0jfn11bl05k3qkqw0f4vi2i2lhllxdrbb1732qiisdy9fbvv8611";
  };

  nativeCheckInputs = [ pytest ];

  checkPhase = ''
    pytest
  '';

  meta = {
    description = "Generate random names";
    mainProgram = "names";
    homepage = "https://github.com/treyhunner/names";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ kamadorueda ];
  };
}