nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonAtLeast,
6 unittestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "untokenize";
11 version = "0.1.1";
12 format = "setuptools";
13
14 # https://github.com/myint/untokenize/issues/4
15 disabled = pythonAtLeast "3.14";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "3865dbbbb8efb4bb5eaa72f1be7f3e0be00ea8b7f125c69cbd1f5fda926f37a2";
20 };
21
22 nativeCheckInputs = [ unittestCheckHook ];
23
24 meta = {
25 description = "Transforms tokens into original source code while preserving whitespace";
26 homepage = "https://github.com/myint/untokenize";
27 license = lib.licenses.mit;
28 maintainers = with lib.maintainers; [ FlorianFranzen ];
29 };
30}