diff options
| author | sandydoo <hey@sandydoo.me> | 2023-04-26 08:57:29 +0000 |
|---|---|---|
| committer | Domen Kožar <domen@dev.si> | 2023-04-28 10:43:21 +0100 |
| commit | 59168b0d90661999d293586a85eeb7256b25769d (patch) | |
| tree | 93d9c1ced0de50783a594abb226a9af2c740acc1 | |
| parent | datadog-integrations-core: add missing modules and dependencies (diff) | |
| download | nixpkgs-origin/backport-228489-to-release-22.11.tar.gz | |
python3Packages.binary: init at 1.0.0origin/backport-228489-to-release-22.11
| -rw-r--r-- | pkgs/development/python-modules/binary/default.nix | 33 | ||||
| -rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/binary/default.nix b/pkgs/development/python-modules/binary/default.nix new file mode 100644 index 000000000000..9311289b7cc2 --- /dev/null +++ b/pkgs/development/python-modules/binary/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pythonOlder +, setuptools +}: + +buildPythonPackage rec { + pname = "binary"; + version = "1.0.0"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-bsAQ5Y9zMevIvJY42+bGbWNd5g1YGLByO+9N6tDsKKY="; + }; + + nativeBuildInputs = [ setuptools ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "binary" "binary.core" ]; + + meta = with lib; { + description = "Easily convert between binary and SI units (kibibyte, kilobyte, etc.)"; + homepage = "https://github.com/ofek/binary"; + license = with licenses; [ asl20 mit ]; + maintainers = with maintainers; [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d059c29cae93..ad1b45128616 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1221,6 +1221,8 @@ self: super: with self; { bimmer-connected = callPackage ../development/python-modules/bimmer-connected { }; + binary = callPackage ../development/python-modules/binary { }; + binaryornot = callPackage ../development/python-modules/binaryornot { }; bincopy = callPackage ../development/python-modules/bincopy { }; |
