nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 877 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 toml, 7 pytest-mock, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "single-source"; 13 version = "0.4.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "rabbit72"; 18 repo = "single-source"; 19 tag = "v${version}"; 20 hash = "sha256-4l9ochlscQoWJVkYN8Iq2DsiU7qoOf7nUFYgBOebK/g="; 21 }; 22 23 build-system = [ poetry-core ]; 24 25 nativeCheckInputs = [ 26 toml 27 pytest-mock 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "single_source" ]; 32 33 meta = { 34 description = "Access to the project version in Python code for PEP 621-style projects"; 35 homepage = "https://github.com/rabbit72/single-source"; 36 changelog = "https://github.com/rabbit72/single-source/releases/tag/v${version}"; 37 license = lib.licenses.mit; 38 maintainers = with lib.maintainers; [ nickcao ]; 39 }; 40}