15 buildPythonPackage rec {
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
23 owner = "kevinheavey";
25 rev = "refs/tags/${version}";
26 hash = "sha256-mfXkrCbBaJ0da+taKJvfyU5NS43tYJWqtTUXiCLVoGQ=";
29 cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
32 ln -s ${./Cargo.lock} Cargo.lock
39 rustPlatform.cargoSetupHook
40 rustPlatform.maturinBuildHook
43 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
45 nativeCheckInputs = [ pytestCheckHook ];
47 pythonImportsCheck = [ "pyheck" ];
50 description = "Python bindings for heck, the Rust case conversion library";
51 homepage = "https://github.com/kevinheavey/pyheck";
52 changelog = "https://github.com/kevinheavey/pyheck/blob/${version}/CHANGELOG.md";
53 license = licenses.mit;
54 maintainers = with maintainers; [ fab ];