nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 38 lines 903 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pytest-cov-stub, 8}: 9 10buildPythonPackage rec { 11 pname = "sensor-state-data"; 12 version = "2.20.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "Bluetooth-Devices"; 17 repo = "sensor-state-data"; 18 tag = "v${version}"; 19 hash = "sha256-ONAM1WxKnzRCJsuJa+4zDaOXPkTj+zcTH54SgktpMR8="; 20 }; 21 22 build-system = [ poetry-core ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 pytest-cov-stub 27 ]; 28 29 pythonImportsCheck = [ "sensor_state_data" ]; 30 31 meta = { 32 description = "Models for storing and converting Sensor Data state"; 33 homepage = "https://github.com/bluetooth-devices/sensor-state-data"; 34 changelog = "https://github.com/Bluetooth-Devices/sensor-state-data/releases/tag/${src.tag}"; 35 license = with lib.licenses; [ asl20 ]; 36 maintainers = with lib.maintainers; [ fab ]; 37 }; 38}