File tree Expand file tree Collapse file tree 1 file changed +7
-51
lines changed
pkgs/development/python-modules/passlib Expand file tree Collapse file tree 1 file changed +7
-51
lines changed Original file line number Diff line number Diff line change 11{
2- lib ,
3- buildPythonPackage ,
4- fetchFromGitHub ,
5- argon2-cffi ,
6- bcrypt ,
7- cryptography ,
8- hatchling ,
9- pytestCheckHook ,
10- pytest-archon ,
11- pytest-xdist ,
12- typing-extensions ,
2+ libpass ,
3+ mkPythonMetaPackage ,
134} :
145
15- buildPythonPackage rec {
6+ mkPythonMetaPackage {
167 pname = "passlib" ;
17- version = "1.9.0" ;
18- pyproject = true ;
19-
20- src = fetchFromGitHub {
21- owner = "ThirVondukr" ;
22- repo = "passlib" ;
23- tag = version ;
24- hash = "sha256-Q5OEQkty0/DugRvF5LA+PaDDlF/6ysx4Nel5K2kH5s4=" ;
25- } ;
26-
27- build-system = [ hatchling ] ;
28-
29- dependencies = [ typing-extensions ] ;
30-
31- optional-dependencies = {
32- argon2 = [ argon2-cffi ] ;
33- bcrypt = [ bcrypt ] ;
34- totp = [ cryptography ] ;
35- } ;
36-
37- nativeCheckInputs = [
38- pytestCheckHook
39- pytest-archon
40- pytest-xdist
41- ] ++ lib . flatten ( lib . attrValues optional-dependencies ) ;
42-
43- pythonImportsCheck = [ "passlib" ] ;
44-
45- disabledTests = [
46- # timming sensitive
47- "test_dummy_verify"
48- "test_encrypt_cost_timing"
49- ] ;
50-
8+ inherit ( libpass ) version ;
9+ dependencies = [ libpass ] ;
10+ optional-dependencies = libpass . optional-dependencies or { } ;
5111 meta = {
52- changelog = "https://github.com/ThirVondukr/passlib/blob/${ src . tag } /CHANGELOG.md" ;
53- description = "Password hashing library for Python" ;
54- homepage = "https://github.com/ThirVondukr/passlib" ;
55- license = lib . licenses . bsd3 ;
56- maintainers = with lib . maintainers ; [ dotlambda ] ;
12+ inherit ( libpass . meta ) changelog description homepage ;
5713 } ;
5814}
You can’t perform that action at this time.
0 commit comments