1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 setuptools-scm,
7 unittestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "rstr";
12 version = "3.2.2";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-xKVk1N+0Ry2THRRcQ9HPGteMJFkhQud1W4hmF57qwBI=";
17 };
18
19 pyproject = true;
20
21 nativeBuildInputs = [
22 setuptools
23 setuptools-scm
24 ];
25
26 doCheck = true;
27 nativeCheckInputs = [ unittestCheckHook ];
28
29 meta = with lib; {
30 description = "Python library to generate random strings";
31 homepage = "https://github.com/leapfrogonline/rstr";
32 license = licenses.bsd3;
33 maintainers = with maintainers; [ danc86 ];
34 };
35}