15 buildPythonPackage rec {
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
25 rev = "refs/tags/v${version}";
26 hash = "sha256-a6OzffGt5piHgi0AWEXJED0R/+8RETh/9hYJi/lUVu0=";
30 # setup_requires -> tests_requires for pytest
32 url = "https://github.com/fugue/credstash/commit/9c02ee43ed6e37596cafbca2fe80c532ec19d2d8.patch";
33 hash = "sha256-dlybrpfLK+PqwWWhH9iXgXHYysZGmcZAFGWNOwsG0xA=";
36 # The install phase puts an executable and a copy of the library it imports in
37 # bin/credstash and bin/credstash.py, despite the fact that the library is also
38 # installed to lib/python<version>/site-packages/credstash.py.
39 # If we apply wrapPythonPrograms to bin/credstash.py then the executable will try
40 # to import the credstash module from the resulting shell script. Removing this
41 # file ensures that Python imports the module from site-packages library.
42 postInstall = "rm $out/bin/credstash.py";
44 build-system = [ setuptools ];
53 nativeBuildInputs = [ pytestCheckHook ];
56 # Tests require a region
57 "integration_tests/test_credstash_lib.py"
58 "tests/key_service_test.py"
62 description = "A utility for managing secrets in the cloud using AWS KMS and DynamoDB";
63 homepage = "https://github.com/LuminalOSS/credstash";
64 changelog = "https://github.com/fugue/credstash/releases/tag/v${version}";
65 license = licenses.asl20;
66 maintainers = with maintainers; [ ];
67 mainProgram = "credstash";