nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 60 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonAtLeast, 6 7 # build-system 8 hatchling, 9 hatch-vcs, 10 11 # dependencies 12 param, 13 pyyaml, 14 requests, 15 16 # tests 17 pytestCheckHook, 18}: 19 20buildPythonPackage rec { 21 pname = "pyct"; 22 version = "0.6.0"; 23 pyproject = true; 24 25 src = fetchPypi { 26 inherit pname version; 27 hash = "sha256-1OUTss81thZWBa5fzl8qSZhbxnRzxXnehRNLjHHTdKg="; 28 }; 29 30 build-system = [ 31 hatchling 32 hatch-vcs 33 ]; 34 35 dependencies = [ 36 param 37 pyyaml 38 requests 39 ]; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 ]; 44 # Only the command line doesn't work on with Python 3.12, due to usage of 45 # deprecated distutils module. Not disabling it totally. 46 disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [ 47 "pyct/tests/test_cmd.py" 48 ]; 49 50 pythonImportsCheck = [ "pyct" ]; 51 52 meta = { 53 description = "ClI for Python common tasks for users"; 54 mainProgram = "pyct"; 55 homepage = "https://github.com/pyviz/pyct"; 56 changelog = "https://github.com/pyviz-dev/pyct/releases/tag/v${version}"; 57 license = lib.licenses.bsd3; 58 maintainers = [ ]; 59 }; 60}